iseof


Purpose
Test whether the end of the default input stream has been reached.
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
fclose, fopen.


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.