Udostępnij za pośrednictwem


basic_fstream::is_open

Determines if a file is open.

bool is_open( ) const;

Return Value

true if the file is open, false otherwise.

Remarks

The member function returns rdbuf ->is_open.

Example

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

Requirements

Header: <fstream>

Namespace: std

See Also

Reference

basic_fstream Class

iostream Programming

iostreams Conventions

Other Resources

basic_fstream Members