cppreference.com > C++ I/O > close
close
Syntax:
  #include <fstream>
  void close();

The close() function closes the associated file stream.