checks if the end of file is reached
INCLUDE 'iolib.h' eof(filehandle)
eof(FileHandle) (i)
handle(FileHandle) (i) FileHandle that determines the examined file
Eof() succeeds if the end of the file refered to by FileHandle is reached.
openread(input,"test.dat", repeat, readln(X), writeln(X),nl, eof(input), closefile(input).
A runtime error occurs if FileHandle is not valid.
prolog-process, client-server, object