The code that I put up here isnt the exact code I am using. I generally just wanted the idea of what to do. Thats why it was typed. See I have a text file with the below data and must be done in that format, was reading into hashes seems the way to go, but will just arrays work to. The exact problem I have is. I am trying to ask a user for the username and password and retrieve them from the file and continue with the program if they validate.
name1
pass1
name2
pass2