Results 1 to 5 of 5

Thread: please look at my code

  1. #1
    Join Date
    Dec 2004
    Posts
    139
    Rep Power
    0

    Exclamation please look at my code

    Open "C:\Password Genie\Password.ghz" For Input As #1
    Input #1, data
    Close #1
    rtbusername.Text = data

    i need a way to like have it auto add another data example

    Open "C:\Password Genie\Password.ghz" For Input As #1
    Input #1, data,data1,data2
    Close #1
    rtbusername.Text = data,data1,data2

    ive been trying forever please help me ANYBODY!!!

  2. #2
    Join Date
    Jan 2004
    Posts
    2,011
    Rep Power
    0

    Default

    I'm no vb guru but am i the only one that doesn't understand what this kid is saying?

  3. #3
    Join Date
    Apr 2003
    Posts
    13,269
    Rep Power
    34

    Default

    True DK. caesar give us more info on what you're trying to do and what your code is supposed to be doing.
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  4. #4
    Join Date
    Dec 2004
    Posts
    139
    Rep Power
    0

    Default

    okay here is the deal that snippet of code there it reads the file password.ghz and outputs it to rtbusername. the problem that i am having is that when i add to password.ghz it does not read all of the data inside of password.ghz. to fix that you must add another variable to the statement "input#1, data,data2" and at the end of the statement you just concatenate "rtbusername.Text = data&data2". I want it to automatically do it by itself and im trying to find a way to do it. I hope i have expressed myself clearly now and that you guys understand what i mean.

  5. #5
    Join Date
    Dec 2004
    Posts
    139
    Rep Power
    0

    Default

    Open "C:\Password Genie\Password.ghz" For Input As #1
    While Not EOF(1)
    Line Input #1, temp$
    alltext$ = alltext$ & temp$ & vbCrLf
    Wend
    Close #1
    rtbusername.Text = alltext$

    i fixed it guys its a good thing i love programming...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •