Share via


basic_fstream::close

Closes a file.

void close( );

Remarks

The member function calls rdbuf -> close.

Example

See basic_filebuf::close for an example of how to use close.

Requirements

Header: <fstream>

Namespace: std

See Also

Reference

basic_fstream Class

iostream Programming

iostreams Conventions