Reading text files into a password

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dr1ver
    New Member
    • Feb 2008
    • 1

    Reading text files into a password

    Hi
    I have recently been looking into writing and reading txt files on vb6
    but im a bit stuck on how to check against what is in the txt file for example if the text document has "1","2" in i want it so when you enter 1 and 2 into 2 individual textboxs it will open a form

    i also need to know how to scan through the txt document if there are more than 1 amount of data added so if the txt document has "1","2" then "3","4" then "5","6" and "7","8"and 5 and 6 are added into the two textboxs it will scan through the file until it finds "5","6" and then opens up the another form.

    sorry if i havn't explained it very well
    please tell me if you need more info of what it is that im trying to do
    thanx
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Originally posted by Dr1ver
    Hi
    I have recently been looking into writing and reading txt files on vb6
    but im a bit stuck on how to check against what is in the txt file for example if the text document has "1","2" in i want it so when you enter 1 and 2 into 2 individual textboxs it will open a form
    ...
    If i well understood, it might be of help if you read the txt file into a string, and then use SPLIT (with Chr(13) for next line character) to chop the string into an array and then using FOR EACH and another SPLIT (with Chr(9) for tabs or with " " for spaces) create an array of arrays or a matrix where each row will have the info for each user, so just check the password column of the row that matches the name or id.

    Comment

    • gobblegob
      New Member
      • Dec 2007
      • 133

      #3
      Try this mate,




      Gobble.

      Comment

      Working...