TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: HERBERT BUSHONG
from: CAMERON CLARK
date: 1997-08-10 03:02:00
subject: Re: fstream identifying mode

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)

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™.