다음을 통해 공유


basic_ifstream::is_open

Determines if a file is open.

bool is_open( ) const;

반환 값

true if the file is open, false otherwise.

설명

The member function returns rdbuf -> is_open.

예제

See basic_filebuf::is_open for an example that uses is_open.

요구 사항

Header: <fstream>

네임스페이스: std

참고 항목

참조

basic_ifstream 클래스

iostream 프로그래밍

iostreams 규칙