Jump to content
Tuts 4 You

Search & Replace Patch VB.NET


Recommended Posts

The problem of your method is that you have to go by an hex string. It means you won't be able to make a search and replace on a bin file (or you'll have to convert it to string, which is just terrible).

The way I usually use is with a ReadAllBytes then this function > http://stackoverflow.com/questions/10702514/replace-value-inside-byte-array then WriteAllBytes. It is not yet the best way [but I don't really want to use the BinaryWriter] (but however it should take max 1sec for big files...).

Edited by mArTi
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...