Code:
// create reader & open file
Textreader tr = new StreamReader(@"C:\123.log");
// read a line of text
Console.WriteLine(tr.ReadLine());
// close the stream
tr.Close();