|
-
Aug 3rd, 2005, 12:26 AM
#1
Thread Starter
Addicted Member
Read Binary Files[VB]
Greetings,
How can I access, read and change/proccess files in binary in VB?
Any help would be appreciated.
Last edited by kill_bill_gates; Aug 3rd, 2005 at 06:07 AM.
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Aug 3rd, 2005, 02:14 AM
#2
Re: Read Binary Files
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.
-
Aug 15th, 2005, 05:33 AM
#3
Thread Starter
Addicted Member
Re: Read Binary Files[VB]
Well Randem; it did not help unoftunately. What I'd like to do is to access and modify a .jpeg file.
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Aug 15th, 2005, 05:37 AM
#4
Re: Read Binary Files[VB]
kill_bill_gates,
So, tell me why it did not help you change a binary file as you asked?
-
Aug 15th, 2005, 05:40 AM
#5
Thread Starter
Addicted Member
Re: Read Binary Files[VB]
I wanted to do it through VB, what you suggested was an exe file.
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Aug 15th, 2005, 10:44 AM
#6
Re: Read Binary Files[VB]
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|