basic_filebuf::close
basic_filebuf *close();
The member function returns a null pointer if the file pointerfp is a null pointer. Otherwise, it calls fclose``(fp). If that function returns a nonzero value, the function returns a null pointer. Otherwise, it returns this to indicate that the file was successfully closed.