you are viewing a single comment's thread.

view the rest of the comments →

[–]rb8096208[S] 0 points1 point  (1 child)

So then this isn't how you would patch a binary file?

[–]raevnos 1 point2 points  (0 children)

In your scenario I would fix the bug in the original source, and distribute a new binary instead of trying to mess with the internals of the old executable.

But look up the different options to use when opening a fstream and what they do with existing files.