HB> I've scanned the help, headers, books, everything I could find, and can't
f
HB> the answer to the following:
HB>
HB> Is there a way to identify the mode that an fstream was opened in?
HB> (binary vs. text -- borland 4.5)
HB>
HB> If so, HOW?
HB>
HB> I've looked at the various iofstreams, iostreams, ios, streambuf, etc...
HB> class definitions, but nothing pops out screaming *IT'S ME* :(
The only thing I've found is in the bas class IOS.
Look at "Public Data Members", "open_mode".
Next is,
Syntax
int rdstate();
Description
Returns the stream state by returning the value of the data member state
of class ios.
This probably does nothing more than test fro good,bad,fail, etc.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)
|