예제 #1
0
        public void SaveToStream(Stream stream)
        {
            StreamWriter SW = new StreamWriter(stream);

            foreach (IniSection ISec in List)
            {
                ISec.SaveToStream(SW);
            }
            SW.Dispose();
        }
예제 #2
0
        public IniSection WriteValue(string SectionName, string key, DateTime value)
        {
            IniSection ISec = FindSection(SectionName);

            if (ISec == null)
            {
                ISec = new IniSection(SectionName);
                List.Add(ISec);
            }
            ISec.WriteValue(key, value);
            return(ISec);
        }