how to check if a FILE is open

I've got a FILE pointer like this:

FILE* file;

How can I check if it's open? Is it possible to use ofstream::is_open method?
if you call fopen, you can check for NULL

FILE* is for C file I/O
ofstream is for C++ file I/O

You can mix them but it may get a bit complicated: http://www.cplusplus.com/forum/articles/22316/
Topic archived. No new replies allowed.