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: 2322 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: example Errors in C++  c++ how to handle errors  handling errors c++  file errors in C++  c++ throw errors  how to find errors on my pc  hard disc errors  errors and exceptions in c++ tutorials  check disk for errors + dos  How to find errors on my harddisk  user errors c++ throw  check hardisk for errors  file handling errors in c++  how to check hard disk for errors  catch errors using Exception error handler in c++  How are exceptions and exception handling related to run-time errors  making 3D anything  instant messangers  how to burn iso with nero  Online Home Network Diagnostics