#include <stdiostr.h>
The run-time library supports three conceptual sets of I/O functions: iostreams (C++ only), standard I/O (the functions declared in STDIO.H), and low-level I/O (the functions declared in IO.H). The stdiobuf class is a derived class of streambuf that is specialized for buffering to and from the standard I/O system.
Because the standard I/O system does its own internal buffering, the extra buffering level provided by stdiobuf may reduce overall input/output efficiency. The stdiobuf class is useful when you need to mix iostream I/O with standard I/O (printf and so forth).
You can avoid use of the stdiobuf class if you use the filebuf class. You must also use the stream class’s ios::flags member function to set the ios::stdio format flag value.
Construction/Destruction — Public Members
Constructs a stdiobuf object from a FILE pointer.
Destroys a stdiobuf object.
Other Functions — Public Members
Gets the file that is attached to the stdiofile object.
See Also stdiostream, filebuf, strstreambuf, ios::flags