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::rdstate
ios                                         Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  int rdstate() const;
 
  Remarks
 
  Returns the current error state as specified by the following masks (ios
  enumerators):
 
  Value          Meaning
 
  ios::goodbit   No error condition
 
  ios::eofbit    End of file reached
 
  ios::failbit   A possibly recoverable formatting or conversion error
 
  ios::badbit    A severe I/O error or unknown state
 
  The returned value can be tested against a mask with the AND (&)
  operator.
 
  See Also
 
  ios::clear
 
 
                                     -♦-