Can't open ofstream with ios::ate
807575Feb 22 2002 — edited Feb 25 2002Hi
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