Share via


iostream

#include <iostream.h>

The iostream class provides the basic capability for sequential and random-access I/O. It inherits functionality from the istream and ostream classes.

The iostream class works in conjunction with classes derived from streambuf (for example, filebuf). In fact, most of the iostream “personality” comes from its attached streambuf class. You can use iostream objects for sequential disk I/O if you first construct an appropriate filebuf object. More often, you will use objects of classes fstream and strstream.

Derivation

For derivation suggestions, see the istream and ostream classes.

Public Members

iostream

Constructs an iostream object that is attached to an existing streambuf object.

~iostream

Destroys an iostream object.

Protected Members

iostream

Acts as a void-argument iostream constructor.

Input/Output Stream Classes

See Also   istream, ostream, fstream, strstream, stdiostream