Compartilhar via


basic_ifstream::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 that uses is_open.

Requirements

Header: <fstream>

Namespace: std

See Also

Reference

basic_ifstream Class

iostream Programming

iostreams Conventions

Other Resources

basic_ifstream Members