filebuf error handling
Benjamin Kosnik
bkoz@redhat.com
Mon Jul 2 11:48:00 GMT 2001
> I've just read that for binary io it's better to use 'filebuf' instead of
> 'std::iostream::read/write'. Can any body tell me how to handle errors with
> filebuf? I am goona miss all those nice ios::goof()/bad()/fail() functions.
I strongly suggest getting and reading
"standard C++ IOStreams and Locales" by Angelika Langer and Klaus Kreft.
http://www.amazon.com/exec/obidos/ASIN/0201183951/o/qid=994099647/sr=2-1/ref=aps_sr_b_1_1/002-0577488-4296808
For people trying to come to grips with standards-compliant C++ IO, this
book is a must-have.
-benjamin
More information about the Libstdc++
mailing list