TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CAMERON CLARK
from: HERBERT BUSHONG
date: 1997-08-12 04:38:00
subject: fstream identifying

::> 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.