|
-
Jun 20th, 2009, 03:42 PM
#1
Thread Starter
New Member
Dumping Txt,Hex into Text1.txt?
Ok, I am so lame! Some time ago I was into programming and I could do the things I am now once again asking how to do. "I forgot everything."
Now that i installed vb again, for some reason i dont have any help guides. Anyhow here is my question.
"Keep it simple"
Code:
Open PathToDesktop & "\dsfg.txt" For Output As #1
Assuming the above to be any type of file i would like to pull data from and dump it into a Text box for viewing.
Code:
Text1.txt = dsfg.txt
, "i know i am awfull."
My goal, Open a hex file, Have its address on the Left in Blue, Hex char's in the center and , ACII on the right. How i will meet my goal i do not know. Right now i just want to get started, Dumping the data from the given text or HEX file into an text1.txt window.
Much appreciated.
-
Jun 20th, 2009, 07:21 PM
#2
Re: Dumping Txt,Hex into Text1.txt?
Have a good look at this submission @CodeGuru.
-
Jun 20th, 2009, 09:54 PM
#3
Re: Dumping Txt,Hex into Text1.txt?
Open PathToDesktop & "\dsfg.txt" For Output As #1
should be input
vb Code:
open PathToDesktop & "\dsfg.txt" for input as 1 text1 = input(lof(1), #1) close 1
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
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
|