~filebuf();
Remarks
Closes the attached file only if that file was opened by the open member function.
filebuf Overview | Stream Buffer Classes