Table of Contents
Previous Section Next Section

fail

#include <iostream.h>int fail() const;

The fail( ) function is a member of ios.

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

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


Table of Contents
Previous Section Next Section