
Problem to convert from VC 6.0 to VC 7.1 because of using filebuf::setmode()
Hello,
I have to find out in which mode a filestream is open.
In VC 6.0 I can use the method filebuf::setmode() to get the previous open
mode.
Because in VC 7.1 setmode() is no longer available, how can I get the
openmode instead ?
Example:
int mode = os.setmode( filebuf::text );
if ( mode == filebuf::binary )
...
Thanks
Heinz