The Great Newline Schism “Did you ever wonder what was at the end of your lines? As a programmer, I knew there were end of line characters, but I honestly never thought much about them. They just … worked. But newlines aren’t a universally accepted standard; they are different depending who you ask, and what platform they happen to be computing on:”
An excellent short article about newline confusion — all new programmers should read it.