::> HB> Is there a way to identify the mode that an fstream was opened in?
::> HB> (binary vs. text -- borland 4.5)
::> The only thing I've found is in the bas class IOS.
::> Look at "Public Data Members", "open_mode".
::> int rdstate();
::> Returns the stream state by returning the value of the data member
ta
::> of class ios.
::> This probably does nothing more than test fro good,bad,fail, etc.
I did find where it was stored for files (class filebuf, mode member). It's
protected, and I'd probably have to derive a class to provide access to it :(
# Herbert Bushong harchon@centuryinter.net [TEAM OS/2]
- Blackbeard's BBS Intelec: 239:600/0
+ Fido: 1:19/19 http://www.intelec.com/software/
---
RM 1.31 2508 I am in total control, but don't tell my cat.
---------------
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)
|