Sexy chat website no sign in - Updating a file using random access

Why the size of the file can be greater than the actual data contained in that file?The answer is little bit off the topic yet it is be good to discuss.

updating a file using random access-73

With seekg (-100L, ios::end), we are moving in the backward direction by 100 bytes starting from the end of the file.

We can only move in the forward direction from the beginning of the file and backward from the end of the file.

Likewise, we intend to move in the backward direction by providing a negative number.

By writing: The file pointer will move 10 bytes in the backward direction from the current position.

Once i have updated the record, then go to enter a new record it continues to produce copies of the updated record regardless of the entry details for the new record.

Comments