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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top