public static void SaveConfig(string file) { string[] lines = new string[6]; // write attributes lines[0] = "back_col," + ((int)(CLI.BackColor)).ToString(); lines[1] = "text_col," + ((int)(CLI.ForeColor)).ToString(); lines[2] = "titlebar_col," + ((int)(Shell.TitleBarColor)).ToString(); lines[3] = "title_col," + ((int)(Shell.TitleColor)).ToString(); lines[4] = "time_col," + ((int)(Shell.DateTimeColor)).ToString(); lines[5] = "titlebar_show," + (Shell.TitleBarVisible ? "1" : "0"); // attempt save try { PMFAT.WriteAllLines(file, lines); } // unexpected error catch (Exception ex) { CLI.WriteLine("Error occured while trying to save system configuration!", Color.Red); CLI.Write("[INTERNAL] ", Color.Red); CLI.WriteLine(ex.Message); } }