I was following example from microsoft site for reading from text file. They say to do it like this:
class Test { public static void Main() { try
change this:
using (StreamReader sr = new StreamReader("TestFile.txt"));
to this:
using (StreamReader sr = new StreamReader("TestFile.txt"))