You are on page 1of 1

string a; System.IO.StreamReader docFile = new System.IO.StreamReader("tenfile.txt"); a = docFile.ReadLine(); while (a != null) { listBox1.Items.Add(a); a = docFile.ReadLine(); } docFile.Close(); docFile.

Dispose();

You might also like