public void SaveToStream(Stream stream) { StreamWriter SW = new StreamWriter(stream); foreach (IniSection ISec in List) { ISec.SaveToStream(SW); } SW.Dispose(); }
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); }