Date: 4 Jun 2000 14:29:23 -0700 Message-ID: <20000604212923.19988.cpmta@c012.sfo.cp.net> X-Sent: 4 Jun 2000 21:29:23 GMT Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: djgpp AT delorie DOT com From: frans nagel X-Mailer: Web Mail 3.6.3.1 Reply-To: djgpp AT delorie DOT com hello Djgpp I was hoping you would have time to help me. I have a difficulty storing classes to Random Access files.I use the seekp,seekg, and read and write functions but end up with data that are pushing each other out of position in the file. I checked with tellp()and that showed me that when the program writes a record it writes past its allotted position by 2 or up to 8 spaces,whatever it seems to feels like. How do I make sure this doesn't happen? this is an excerpt: inout.seekp((num-1)*40); cout<<"start write"<(&client),40); cout<<"after write"<