Reminder - \r\n or \n\r?

Solution 1:

I'd use the word 'return' to remember, the r comes before the n.

Solution 2:

If you are using C# you should use Environment.NewLine, which accordingly to MSDN it is:

A string containing "\r\n" for non-Unix platforms, or a string containing "\n" for Unix platforms.