public static void Load() { try { string path = Path.Combine(DataManager.GetCfgFolderPath(), cfg_file); if (!File.Exists(path)) { return; } StreamReader sr = new StreamReader(path); while (!sr.EndOfStream) { string line = sr.ReadLine(); int pos = line.IndexOf(';'); string key = line.Substring(0, pos); string name = line.Substring(pos + 1); GroupInfoManager.AddGroup(new GroupInfo(key, name)); } } catch (Exception e) { Logger.WriteLine(e.Message); } }