Table of Contents
Previous Section Next Section

eof

#include <iostream>bool eof() const;

The eof( ) function is a member of ios.

The eof( ) function returns true when the end of the associated input file has been encountered; otherwise, it returns false.

Related functions are bad( ), fail( ), good( ), rdstate( ), and clear( ).


Table of Contents
Previous Section Next Section