Just out of curiosity, why are you opposed to "mixing the standard and common headers" ?
To answer the question. I have NO flipping idea why this matters, and I suspect its a VC++ bug, but you need to remove the namespace decleration from the beginning of :
std::ofstream
IE
ofstream strOp("C:\\matt.bin",nMode);
I tried your code and it never created the file. I took off the qualifier and it worked like a charm.
It worked fine both with the namespace decleration (std:
and without in ASCII mode.
Nick
"
(Use if you're redeeming a promotional certificate or coupon.)
Returning customer?
Sign in to turn on 1-Click ordering.
(We'll set one up for you)
View my Wish List
Palm OS Game Programming" Available Feb. 2002
Edited by - enjolras on January 11, 2002 10:15:13 AM