Traditionally, files created and used by DOS and Windows used "\r\n" to denote line endings (carriage return + new line). Unix used "\n", and Macintosh used "\r".
Decent text editors will let you change which characters are used when you hit the Enter key. Programmers are nearly always taught to use "\n" as the newline, and it's become the standard for multi-platform applications. Like Drupal. 

