public void LoadConfigs() { if (File.Exists(Application.StartupPath + @"\Configs\" + SteamAuto.UserName + ".ini")) { TextReader config_reader = new StreamReader(Application.StartupPath + @"\Configs\" + SteamAuto.UserName + ".ini"); string input; while ((input = config_reader.ReadLine()) != "//") { SteamAuto.UserName = input; settingfrm.UserNamTB.Text = SteamAuto.UserName; SteamAuto.Password = SteamLibrary.Decrypt(config_reader.ReadLine()); settingfrm.PassTB.Text = SteamAuto.Password; settingfrm.searchResTB.Text = config_reader.ReadLine(); } config_reader.Close(); AccNameLB.Text = "(Acc: " + SteamAuto.UserName + ")"; } else { MessageBox.Show("Error loading configs!", "Error"); AccNameLB.Text = "(Acc: None)"; } }