Reading a text file using streamreader.
using (StreamReader sr = new StreamReader(FileName, Encoding.Default))
{
string line = sr.ReadLine();
}
<
According to the documentation:
http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline.aspx
A line is defined as a sequence of characters followed by a line feed ("\n"), a carriage return ("\r"), or a carriage return immediately followed by a line feed ("\r\n").
By default the StreamReader ReadLine method will recognise a line by both/either \n or \r