Question: what the difference between line feed and carriage return?
Answer: The Carriage Return ("CR") character (0x0D, \r) moves the cursor to the beginning of the line without advancing to the next line. ... The Line Feed ("LF") character (0x0A, \n) moves the cursor down to the next line without returning to the beginning of the line.