Read file line by line (C#)
This code show how to read a file line by line in to string for output to a console or anything other destination.
Snippet
StreamReader reader = new StreamReader("path to your file");
string line = string.Empty;
string line = string.Empty;
while((line = reader.ReadLine()) != null)
{
Console.WriteLine (line);
}
reader.Close();
