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

Unit

System

Category

text file routines

Delphi syntax:

procedure SetLineBreakStyle(var T: Text; Style: TTextLineBreakStyle);

Description

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.


Reply via email to