Difference between revisions of "End of Line"
From Free Pascal wiki
Jump to navigationJump to searchm |
|||
Line 15: | Line 15: | ||
* [[doc:rtl/system/lineending.html|LineEnding]] Constant describing the current line ending character. | * [[doc:rtl/system/lineending.html|LineEnding]] Constant describing the current line ending character. | ||
* [[doc:rtl/system/settextlineending.html|SetTextLineEnding]] Set the end-of-line character for the given text file. | * [[doc:rtl/system/settextlineending.html|SetTextLineEnding]] Set the end-of-line character for the given text file. | ||
+ | * [[doc:rtl/system/slinebreak.html|sLineBreak]] is an alias for LineEnding and is supplied for compatibility. | ||
[[Category:Multiplatform Programming]] | [[Category:Multiplatform Programming]] | ||
[[Category:Platform-sensitive development]] | [[Category:Platform-sensitive development]] |
Revision as of 08:27, 14 November 2014
LineEnding is end of line marker. This constant (system unit) is used when writing end of lines to text files.
End of line markers
(Better/also known as line ending characters)
- Line feed (LF, #10 ): Linux, OS X, BSDs, Unix
- Carriage return + Line feed (CRLF, #13#10): Microsoft Windows
- Carriage return (CR, #13): Mac OS Classic
Mac OS X 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.