|
filebuf::closepublic member function
filebuf * close ( ); Close file Closes the file currently associated with the object and disassociates it.Any pending output sequence is written to the physical file. This is done by calling virtual member overflow. The function fails if no file is currently open (associated) with this object. ParametersnoneReturn ValueIn case of success, the function returns this.In case of failure, a null pointer is returned. Example
Basic template member declaration( basic_filebuf<charT,traits> )
See also
|