RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.SetLineBreakStyle Function

Determines the end-of-line and end-of-file conventions for text file I/O.

Pascal
procedure SetLineBreakStyle(var T: Text; Style: TTextLineBreakStyle);
C++
SetLineBreakStyle(Text T, TTextLineBreakStyle Style);

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, or SetLineBreakStyle generates a runtime 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!