Difference between CR LF, LF and CR line break types

carriage-return, line-breaks, linefeed, newline

Solution

It's really just about which bytes are stored in a file. `CR` is a bytecode for carriage return (from the days of typewriters) and `LF` similarly, for line feed. It just refers to the bytes that are placed as end-of-line markers.

There is way more information, as always, on Wikipedia.

Problem

I'd like to know the difference (with examples if possible) between `CR LF` (Windows), `LF` (Unix) and `CR` (Macintosh) line break types.

Original source