EOL is short for "end of line". In text files each line is terminated with characters such as linefeed or carriage return or a combination thereof.
EOL stands for "end of line" and refers to the various character or combination of characters that signify the end of each line of a text-based file.
For historical reasons there are various common EOLs:
- linefeed or newline, ASCII 0x0A: common on systems with Unix heritage including Mac OS X
- carriage return + linefeed, ASCII 0x0D 0x0A: common on systems with Microsoft DOS and Windows heritage and in text-based internet protocols
- carriage return, ASCII 0x0D: used on Apple Macintosh up to System 7
These differences can present problems when using files and source code on multiple operating systems. Issues may be encountered with text editors, compilers, and revision controls systems.
See also
- carriage return
- crlf
- eof - end of file
- linebreaks
- line-endings
- newline