The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ios::fail
ios                                         Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  int fail() const;
 
  Remarks
 
  Returns a nonzero value if any I/O error (not end of file) has occurred.
  This condition corresponds to either the badbit or failbit error flag
  being set. If a call to bad returns 0, you can assume that the error
  condition is nonfatal and that you can probably continue processing
  after you clear the flags.
 
  See Also
 
  ios::bad, ios::clear
 
 
                                     -♦-