int is_open() const;
Return Value
Returns a nonzero value if this stream is attached to an open disk file identified by a file descriptor; otherwise 0.
ifstream Overview | Input Stream Classes
See Also filebuf::is_open, ifstream::open, ifstream::close