Results 1 to 11 of 11

Thread: [RESOLVED] Write to the SECOND line in a text file?

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    97

    Re: Write to the SECOND line in a text file?

    Quote Originally Posted by |2eM!x
    this might be of some use to you, this will read inbetween lines, i think you could modify it accordingly using replace( or something.

    You didn't post anything.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Write to the SECOND line in a text file?

    Here is how to append the passwords and not keep overwriting the same one
    You really can't make an app by just copy paste someone elses app, because they usually have different requirements. This one came from someone adding a password to their school assignment, and only needed one set of credentials. I would do things differently for more than one


    I maade some changes to that app so that it would work with more than one user. the problem is that there is no main for that calls new password generation. i added David/Password and test/test. They both work
    Attached Files Attached Files
    Last edited by dglienna; Jun 11th, 2005 at 01:30 PM.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    97

    Re: Write to the SECOND line in a text file?

    Quote Originally Posted by dglienna
    Here is how to append the passwords and not keep overwriting the same one
    You really can't make an app by just copy paste someone elses app, because they usually have different requirements. This one came from someone adding a password to their school assignment, and only needed one set of credentials. I would do things differently for more than one


    I maade some changes to that app so that it would work with more than one user. the problem is that there is no main for that calls new password generation. i added David/Password and test/test. They both work
    EDIT: Actually, it isn't working. test/test worked, but not David/Password, I tried some other combos too, but they failed.
    Last edited by Echo{tWe}; Jun 11th, 2005 at 07:01 PM.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Write to the SECOND line in a text file?

    Hmmm. I guess I should have tested better. Change these two lines:
    It was only testing the last one, and I had tested the other two earlier.
    Username/Password was the first one

    VB Code:
    1. user(idx) = HexToStr(xline(0))
    2.   pass(idx) = HexToStr(xline(1))
    3.   idx = idx + 1

    It was using j, which was 0 each time. Also, you can delete the j% from the declaration so it's like this:

    VB Code:
    1. Dim i%, ff%, idx%

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    97

    Re: Write to the SECOND line in a text file?

    Quote Originally Posted by dglienna
    Hmmm. I guess I should have tested better. Change these two lines:
    It was only testing the last one, and I had tested the other two earlier.
    Username/Password was the first one

    VB Code:
    1. user(idx) = HexToStr(xline(0))
    2.   pass(idx) = HexToStr(xline(1))
    3.   idx = idx + 1

    It was using j, which was 0 each time. Also, you can delete the j% from the declaration so it's like this:

    VB Code:
    1. Dim i%, ff%, idx%
    I tryed changing it, still didn't work. I may have done it wrong, see if it works for you, if it does, could you upload it?

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Write to the SECOND line in a text file?

    You just had to replace two lines, but as long as i didn't erase it, i will zip it and post it again.
    Attached Files Attached Files

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    97

    Re: Write to the SECOND line in a text file?

    Quote Originally Posted by dglienna
    You just had to replace two lines, but as long as i didn't erase it, i will zip it and post it again.

    Thanks a bunch bro .

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