private void Open_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); string filename = openFileDialog1.FileName; if (File.Exists(filename) == true) { StreamReader sr = new StreamReader(filename); txt_lesson.Text = sr.ReadToEnd(); sr.Read(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)