//Listing 1.1

StreamReader sr = new StreamReader("c:\\Nazwiska.txt");
string FirstName = null;
while ((FirstName = sr.ReadLine()) != null) {
Console.WriteLine(s); } sr.Dispose();
