How to delete parts from a binary file in C++
问题 I would like to delete parts from a binary file, using C++. The binary file is about about 5-10 MB. What I would like to do: Search for a ANSI string "something" Once I found this string, I would like to delete the following n bytes, for example the following 1 MB of data. I would like to delete those character, not to fill them with NULL, thus make the file smaller. I would like to save the modified file into a new binary file, what is the same as the original file, except for the missing n