is_open

Syntax:

    bool fstream::is_open(void);

Returns true if the stream is associated with a file. In other words, a file has been successfully opened for this stream and close has not been called.

Related Topics: open, close