Next: , Up: ostream subclasses without styling   [Contents][Index]


3.5.3.1 The file_ostream class

The file_ostream class supports output to an <stdio.h> FILE stream. Its type is ‘file_ostream_t’. It is a subclass of ‘ostream_t’ that adds no methods.

It can be instantiated through this function:

Function: file_ostream_t file_ostream_create (FILE *fp)

Creates an output stream referring to fp.

Note: The resulting stream must be closed before fp can be closed.