File.ReadLn |
Top Previous Next |
Syntax function File.ReadLn(F: pointer): string
Alternative Names
Description Reads a line of text from the given file-stream, if available, and returns it. A piece of text is considered a line, if it ends with control characters #10, #13 or #13#10. The routine can read unicode text, see File.Open.
See also
Example execute udsblock returns (valueout varchar(1024)) as begin /* open text file with UTF8 encoding preamble */ fs = File.Open('c:\data\utf8text.txt', __fmOpenReadWrite + __fmShareDenyWrite); try /* read all available lines */ while not File.EOF(fs) do begin valueout = File.ReadLn(fs); suspend; end finally File.Close(fs); end end |