Possible Duplicate:
Difference between \n and \r?
in C/C++ I got used to the newline character being as ‘\n’
but when I got to C# it’s “\r\n”, ‘\n’ or ‘\r’ don’t write a new line on their own.
Why is that?
and what’s the difference between ‘\r’ and ‘\n’?
From http://en.wikipedia.org/wiki/Newline:
CRLF Was intended to be compatible with all the others.
The above all mean newline. THe original meaning was lost, even if someone had an argument for using one or the other, at some point in history.