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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.