public static void Save() { try { string path = Path.Combine(DataManager.GetCfgFolderPath(), cfg_file); if (File.Exists(path)) { File.Delete(path); } StreamWriter sw = new StreamWriter(path); GroupInfo[] groups = GroupInfoManager.GetGroupArray(); foreach (GroupInfo grp in groups) { sw.WriteLine(grp.Key + ";" + grp.Name); } sw.Close(); } catch (Exception e) { Logger.WriteLine(e.Message); } }