Date: Tue, 28 Apr 1998 10:07:15 +0200 (WET) From: Andris Pavenis To: James Addison cc: djgpp AT delorie DOT com Subject: Re: FILE I/O - Problems. In-Reply-To: <6i30i5$d7l$1@news.on> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 27 Apr 1998, James Addison wrote: > I am trying to open an existing binary file for read/write, so I open it > like: > > fstream f(filename, ios::in | ios::out | ios::binary | ios::ate); > > and no matter what, it always truncates - how to stop this? I need to use > what is in the $%^ing file.... :) > > thanks in advance... please reply to me directly at: > > addi AT rogers DOT wave DOT ca using DJGPP > I met similar problem with versions 2.7.2.X. That is fixed in libstdc++ 2.8.X. You could try to upgrade to gcc-2.8.0 but I recommend to wait a bit before gcc-2.8.1 with corresponding libraries will be be released (I working with DJGPP port of gcc-2.8.1 already for more than a month). Andris