Table of Contents
Previous Section Next Section

fail

#include <iostream>bool fail() const;

The fail( ) function is a member of ios.

The fail( ) function returns true if an I/O error has occurred in the associated stream. Otherwise, it returns false.

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


Table of Contents
Previous Section Next Section