------- Comment #5 from redi at gcc dot gnu dot org  2010-08-10 09:16 -------
You have not found a bug in GCC and this is not the place to learn C++.
Please find a reference on C++ iostreams or find an appropriate forum to ask
questions.

You can call is_open() to see if the stream was opened
http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-3.4/classstd_1_1basic__ofstream.html#std_1_1basic__ofstreama4

Please do NOT reply with more questions about using the C++ standard library,
there are lots of books and websites where you an find the information you
need.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45226

Reply via email to