StreamReader reader = new StreamReader(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\xottab_duty\login.save"); string[] strArray = reader.ReadToEnd().Split(new char[] { ';' }); this.textBox1.Text = strArray[0]; this.textBox2.Text = strArray[1]; reader.Close();
string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\xottab_duty\login.save"; if(File.Exists(path)) { StreamReader reader = new StreamReader(path); string[] strArray = reader.ReadToEnd().Split(new char[] { ';' }); this.textBox1.Text = strArray[0]; this.textBox2.Text = strArray[1]; reader.Close(); }