Eof

eof_ind% = Eof(filenum%)

Checks the end-of-file indicator. 
If no error has occurred on filenum, Eof returns 1 if End-Of-File reached, otherwise it returns 0.
If filenum is invalid, Eof sets errno to 22 and returns -1.

Comments