ghsafsdfsdhfghfgjhgkj Posted January 19, 2013 Posted January 19, 2013 (edited) Edited March 5, 2013 by ghsafsdfsdhfghfgjhgkj
mArTi Posted January 19, 2013 Posted January 19, 2013 (edited) 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, 2013 by mArTi
ghsafsdfsdhfghfgjhgkj Posted January 19, 2013 Author Posted January 19, 2013 (edited) Edited March 5, 2013 by ghsafsdfsdhfghfgjhgkj
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now