how to delete some bytes in a binary file,not rewrite the file.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a binary file which is very big(500M),now i want to delete some bytes in the 100th byte
and if i want to add some bytes,how to do?
 
FirePhoenix said:
i have a binary file which is very big(500M),now i want to delete
some bytes in the 100th byte. and if i want to add some bytes,how to do?

You can't. Files just don't work like that - they're sort of like video
tapes. You can't add a bit into the middle of a video tape - you have
to copy the start, then copy the new bit, then copy the rest. You have
to do exactly the same with files.
 
Back
Top