What’s the difference between \\n (newline) and \\r (carriage return)?
\\n
\\r
In particular, are there any practical differences between
Two different characters for different Operating Systems. Also this plays a role in data transmitted over TCP/IP which requires the use of \r\n.
TCP/IP
\r\n
\n Unix
\n
\r Mac
\r
\r\n Windows and DOS.