filebuf* close();
Flushes any waiting output, closes the file, and disconnects the file from the filebuf object.
Return Value
If an error occurs, the function returns NULL and leaves the filebuf object in a closed state. If there is no error, the function returns the address of the filebuf object and clears its error state.
filebuf Overview | Stream Buffer Classes
See Also filebuf::open