Question: what is the difference between carriage return and line feed?
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.