Question: what is the difference between r and n?
Answer: 9 Answers. They're different characters. \r is carriage return, and \n is line feed. ... More importantly, Unix tends to use \n as a line separator; Windows tends to use \r\n as a line separator and Macs (up to OS 9) used to use \r as the line separator.