January 19, 201312 yr 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 January 19, 201312 yr by mArTi
Create an account or sign in to comment