iseof
iseof |
Purpose
Synopsis
function iseof:boolean
Return value
true if the end of the default input stream has been reached,
false otherwise.
Example
The following opens a datafile of integers, reads one from each line and prints it to the console until the end of the file is reached:
declarations
d:integer
end-declarations
...
fopen("datafile.dat", F_INPUT)
while(not iseof) do
readln(d)
writeln(d)
end-do
fclose(F_INPUT)
Further information
This function returns the ``end of file'' status of the active input stream.
Related topics
