Syntax
int eof() const;
Remarks
Returns a nonzero value if end of file has been reached. This condition corresponds to the eofbit error flag being set.