Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't open ofstream with ios::ate

807575Feb 22 2002 — edited Feb 25 2002
Hi

I'm using CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11
(not the latest afiact, I'm working on getting our sysadmin to install the latest patch).

When I do the following
ofstream f;
f.open(filename, ios::out | ios::ate);

writing to f truncates, rather than writing to the end of the file.

This works fine on HP and gcc/linux.

Anyone know if this bug has been fixed? I can't see any mention of "ate" in the doc for patch 109508-07.

Paul


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2002
Added on Feb 22 2002
3 comments
265 views