5.4 Error Handling in File Operations
5.4 Error Handling in File Operations
Prof. B. B. Kotame
Assistant Professor
E-mail : kotamebhagyashricomp@sanjivani.org.in
Contact No: 9561010331
Error Handling During File Operations
The C++ file stream inherits a “stream_state” member from the class ios.
This member records information on the status of a file that is being currently
used.
The class ios supports several member functions that can be used to read
the status recorded in a file stream.
üeof( )
üfail( )
übad( )
ügood()etc.