Reads strings from a file created in a text editor
using System; using System.IO;
public class FileReadStrings { public static void Main( ) {
String line;
StreamReader f = new StreamReader("test.data"); while((line=f.ReadLine()) != null)
Console.WriteLine(line);
f.Close();
}
}