int counter = 0; string line; // Read the file and display it line by line. System.IO.StreamReader file = new System.IO.StreamReader("c:\\yourFile"); while((line = file.ReadLine()) != null) { Console.WriteLine (line); counter++; } file.Close(); // Suspend the screen. Console.ReadLine();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)