Replace sequence of bytes in binary file

Viewed 25137

What is the best method to replace sequence of bytes in binary file to the same length of other bytes? The binary files will be pretty large, about 50 mb and should not be loaded at once in memory.

Update: I do not know location of bytes which needs to be replaced, I need to find them first.

4 Answers
Related