Writing to a file will replace ALL of its old contents if the write is NOT in append mode.
Write a small test program that reads a small file, changes it and writes it out. Look at what was written.
Type: Posts; User: Norm
Writing to a file will replace ALL of its old contents if the write is NOT in append mode.
Write a small test program that reads a small file, changes it and writes it out. Look at what was written.
Read all the file into memory, make the changes, write the file back to disk.
If you know the exact location (the displacement from the first byte of the file) of the characters in the file you...