feof
Syntax:
  #include <cstdio>
  int feof( FILE *stream );  

The function feof() returns a nonzero value if the end of the given file stream has been reached.