What’s the difference between \\n (newline) and \\r (carriage return)?
\\n
\\r
In particular, are there any practical differences between
Two different characters.
\n is used as an end-of-line terminator in Unix text files
\n
\r Was historically (pre-OS X) used as an end-of-line terminator in Mac text files
\r
\r\n (ie both) are used to terminate lines in Windows and DOS text files.
\r\n