System.SetLineBreakStyle
Delphi
procedure SetLineBreakStyle(var T: Text; Style: TTextLineBreakStyle);
C++
extern DELPHI_PACKAGE void __fastcall SetLineBreakStyle(TextFile &T, TTextLineBreakStyle Style);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.pas System.hpp |
System | System |
Description
Determines the end-of-line and end-of-file conventions for text file I/O.
In Delphi, call SetLineBreakStyle to determine how text file routines find or mark the end of a line and the end of a file. Affected routines include Read, Write, ReadLn, Writeln, Eof, Eoln, SeekEof, and SeekEoln.
T is the text file whose line break style is altered. It must be closed; otherwise, SetLineBreakStyle generates a run-time error.
Style indicates the style to use. When Style is tlbsLF, end-of-line is marked using only a linefeed character. When Style is tlbsCRLF, end-of-line is marked using a carriage return and linefeed.