Message-Id: <199708120031.KAA05967@rabble.uow.edu.au> Subject: Re: DJGPP bug To: salvador AT inti DOT edu DOT ar (Salvador Eduardo Tropea) Date: Tue, 12 Aug 1997 10:31:03 +1000 (EST) Cc: djgpp AT delorie DOT com (DJGPP) In-Reply-To: from Salvador Eduardo Tropea at "Aug 11, 97 10:28:25 am" From: *** Brett *** MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk > > > > The problem line is: > > sDatabaseFile.open( "saledb.dat", ios::in | ios::out | ios::nocreate | > > ios::bin ); > > > > > > static fstream sDataBaseFile; > > > > What happens? In DJGPP this truncates the file. Which bums my whole program > > out. > Here the fault isn't in the compiler but in the library. I saw it and is too > annoying. > > Stop trying. Open the file with fopen (or was open?) and pass the file handler > to the constructor (there are a constructor for that). > Any other alternatives? My lecturer for Computer Science doesn't like that... Brett -- Brett Porter bporter AT rabble DOT uow DOT edu DOT au (preferred) --- blp01 AT uow DOT edu DOT au http://www.geocities.com/CollegePark/Union/3596 - Humor Page http://www.geocities.com/SiliconValley/Park/7483 - Programming page http://rabble.uow.edu.au/people/bporter - Mysterious page - hidden links ;)