1\n is the classic line_feed on Unix/Linux (his ascii is 10 in decimal and 0a in hexadecimal)
2\r\n is the classic line_feed on Windows
3\r is the classic line_feed on olds version of MacOs (pre-MacOsX version) (his ascii is 13 in decimal an 0d in hexadecimal)
1\n vs \r
2
3QUESTION: What is the difference between \n and \r?
4
5\n is the newline character, while \r is the carriage return.
6
7(They differ in what uses them.)
8
9------- Windows uses \r\n to signify the enter key was pressed.
10------- Linux and Unix use \n.