basic_ifstream::close

Closes the file stream.

  void close();
  
Remarks

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.

See Also

For example of basic_ifstream::close() usage see basic_ifstream::basic_ifstream()