By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,406 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,406 IT Pros & Developers. It's quick & easy.

fstream file i/o

P: n/a
How do you stop an ofstream object truncating a file on open (using binary mode)?

Dave.
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Dave" <sm*********@hotmail.com> wrote...
How do you stop an ofstream object truncating a file on open (using binary

mode)?

Not to use 'trunc' as one of the specifiers, maybe? Post some code.

Victor
Jul 19 '05 #2

P: n/a

Dave <sm*********@hotmail.com> wrote in message
news:39**************************@posting.google.c om...
How do you stop an ofstream object truncating a file on open (using binary

mode)?

See std::ios::app and std::ios::ate

-Mike

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.