"Wrap" and "Enter", you know?
From new to programming beginning, I always thought carriage return line feed == until wrote a piece of code in plain text today, I know ignorance for so many years.
\ r 0x0D CR carriage Return carriage i.e., move the cursor to the starting position of the line
\ n 0x0A LF line Feed wrap i.e., to change the starting position of the next line
Linux / Unix systems, the end of each row only "\ n "the Windows system, at the end of each line is" \ n \ r ". the result of this is that, Linux files under Unix / Windows opened, all the text is displayed in one row, while Windows files linux / Unix opened, each line end of the line will be more of a symbol ^ M.
Reproduced in: https: //www.cnblogs.com/Todd_Liu/archive/2010/11/23/1885905.html