End of Line
LineEnding is end of line marker. This constant (system unit) is used when writing end of lines to text files. In other words, it starts a new line.
End of line markers
(Better/also known as line ending characters)
- Line feed (LF, #10 ): Linux, macOS, BSDs, Unix
- Carriage return + Line feed (CRLF, #13#10): Microsoft Windows
- Carriage return (CR, #13): Mac OS Classic
macOS often accepts Line feed and Carriage return.
See also
- LineEnding Constant describing the current line ending character.
- SetTextLineEnding Set the end-of-line character for the given text file.
- sLineBreak is an alias for LineEnding and is supplied for compatibility.
From the Free Pascal wiki, page "End of Line", as it stood on 2020-07-03 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.