public static Ini FromFile(string path) { if (!File.Exists(path)) { File.Create(path).Close(); return(new Ini()); } var reader = new IniReader(path); var ret = FromStream(reader); reader.Close(); return(ret); }
public static Ini FromStream(IniReader reader) { return FromElements(reader.ReadElementsToEnd()); }
public static Ini FromFile(string path) { if (!File.Exists(path)) { File.Create(path).Close(); return new Ini(); } var reader = new IniReader(path); var ret = FromStream(reader); reader.Close(); return ret; }
public static Ini FromString(string str) { return(FromElements(IniReader.ParseText(str))); }
public static Ini FromStream(IniReader reader) { return(FromElements(reader.ReadElementsToEnd())); }