Results 1 to 3 of 3

Thread: Dumping Txt,Hex into Text1.txt?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    2

    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.

  2. #2

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Dumping Txt,Hex into Text1.txt?

    Open PathToDesktop & "\dsfg.txt" For Output As #1
    should be input
    vb Code:
    1. open PathToDesktop  & "\dsfg.txt" for input as 1
    2. text1 = input(lof(1), #1)
    3. 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
  •  



Click Here to Expand Forum to Full Width