Closes the file stream.
void close();
The close() function closes the stream for operation but does not destroy the ifstream object so it may be re-opened at a later time. If the function fails, it calls setstate(failbit), which may throw an exception.
There is no return.
For example of basic_ifstream::close() usage see basic_ifstream::basic_ifstream()