Networking, Programming and Graphics Tutorials

ERRORS - C++ [1/1]

Type:
ERRORS - C++
Level: Expert Networking, Programming and Graphics Tutorials Networking, Programming and Graphics Tutorials Networking, Programming and Graphics Tutorials 
ERRORS - C++
Date: 2006-Dec-12
ERRORS - C++
Visited: 2535 times
ERRORS - C++
Rating: ERRORS - C++
ERRORS - C++
Author: Alex Plumpton

File stream inherits a stream state member from the class ios. The stream state member records information on the status of a file that is currently being used. Stream state member uses bitfields to store the status ofthe error conditions that can appear in a file. The table shows various error handling function.

Function Description
eof() Returns true if end-of-life is encountered while reading otherwise returns false.
fail() Returns true when an input or output Operation has failed.
bad() Returns true if invalid operation is attempted or any unrecoverable error has occurred.
good() Returns true if no error has occurred. This means all the above functions are false.
Rate this tutorial:                    
Networking, Programming and Graphics Tutorials - ERRORS - C++ [1/1] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: hdd errors  scaning errors  my harddisk as errors in it  check pc for errors  check my pc for errors  types of errors in c++  check my pc for errors  handling errors c++  file errors in C++  c++ throw errors