hi everybody
i just wanna ask why is this windows application code read the file once ?
when i click the button it displays the text once..
why isn't be repeated?
private void button1_Click(object sender, EventArgs e)
{
string filename = "c:\\flights.txt";
FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read);
StreamReader sr = new StreamReader(fs);
textBox1.Text = sr.ReadToEnd();
sr.Close();
}
thanx