Clear the buffer contents and close the file.
This method does not receive any parameters.
Returns void.