For some weird reason Microsoft decided that using a single char for new-line isn't enough and thought that it'd be best to use two: \r\n.
\r - Carriage return.
\n - Line feed.
The funny thing is that not everyone expect \r\n at all times, some does it, some handles single \r (and ignore the \n) others just handle the \n (and ignore \r).
Consequently, in some applications \r works, in some \n and in some full \r\n is required.
All this confusion is mainly a good thing because as a programmer the more complicated stuff are, the more work I have. And the more work I have the more the chances are of getting a salary even the next month.
/Per
www.perfnurt.se