March 2000
Intermediate to advanced
576 pages
18h 13m
English
SeekEof Function
function SeekEof(var F: TextFile = Input): Boolean
SeekEof skips over white space characters and then
returns True if the text file is at the end of file or False if there
is more text to read. SeekEof is not a real
function.
If the file F is not open,
SeekEof reports runtime error 103.
The file must have been opened by calling Reset.
If the file F was opened by calling
Rewrite or Append,
SeekEof reports runtime error 104.
SeekEof is allowed only for text files.
var
CmdLine: string;
begin
while not SeekEof do
begin
ReadLn(CmdLine);
DoCommand(CmdLine);
end;
end;| Eof Function, IOResult Function, Reset Procedure, SeekEoln Procedure |
Read now
Unlock full access