Thanks Amit, but that doesn't help. The entire point of using the C++ classes to read and write records is that the record size remains constant irrespective of the contents. The record is written in binary format, so an integer data field will occupy 2 bytes, whether its value is 1 or 32767...
Hi
I wanted to carry out simultaneous file i/o using a single handle. I used the fstream object to open the file with the "ios::in | ios::out" protocol. I used the seekg (), read () and write () methods to search within the file, and read and write structures to the file respectively...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.