Greetings,
How can I access, read and change/proccess files in binary in VB?
Any help would be appreciated.
Printable View
Greetings,
How can I access, read and change/proccess files in binary in VB?
Any help would be appreciated.
kill_bill_gates,
Well, it may be determined by just what you want to accomplish. Look at my signature for the Hex File Editor and see if that helps.
Well Randem; it did not help unoftunately. What I'd like to do is to access and modify a .jpeg file.
kill_bill_gates,
So, tell me why it did not help you change a binary file as you asked?
I wanted to do it through VB, what you suggested was an exe file.
VB Code:
Dim FF As Integer, MyData As String ' read from binary file FF = FreeFile Open "C:\myfile.dat" For Binary Access Read Lock Write As FF MyData = String(LOF(FF), 0) Get FF, , MyData Close FF ' write to binary file FF = FreeFile Open "C:\myfile.dat" For Binary Access Write Lock Write As FF Put FF, , MyData Close FF