class ofstream : public ostream

The ofstream class is an ostream derivative specialized for disk file output. All of its constructors automatically create and associate a filebuf buffer object.

The filebuf class documentation describes the get and put areas and their associated pointers. Only the put area and the put pointer are active for the ofstream class.

#include <fstream.h>

See Also

filebuf, streambuf, ifstream, fstream