How to get VB to change hex code

Question:
I need to change one offset value in a binary file. How can I read the file with Visual Basic?

Answer:
I would recommend loading the file into an array of type Byte. You should beable to then find the particular offset by simply counting from the beginningof the file, changing the value in question, and then writing the file backout. Take a look at the help for the Open statement. It can open a file for Binary access, which will let you read a single byte at a time.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: