Sender: nate AT millcomm DOT com (nate) Date: Sun, 28 Apr 1996 03:01:33 -0500 (CDT) From: nate Sender: nate Reply-To: nate Subject: gxx ios::binary file reading/writing To: djgpp AT delorie DOT com Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII question for anyone using gxx for reading and writing binary files: I'm using DJGPP version 2.0 with cwsdpmi v.90+, coding in c++ and compiling with gxx, and I am running into difficulties updating existing binary files. Reading in binary information via .read works without any problems (i've been using it for weeks), however .write only wants to work if the file is new, or if the ofstream object is opened with (ios::binary | ios:app) (append) flags. If I attempt to .seekp a random location in the file and .write, the program freezes and locks up the machine. I've read all the information in the DJGPP info directory, and scowered the net for some assistance with ths problem and I cannot determine why I am having these difficulties modifying random locations of binary files. If anyone has any ideas, or knows about a problem/bug, etc, please drop me mail about it, as I don't sunscribe to the list. Thank you. -Nate Erkkilla