So I want to loop a file so that the user can log in. For example i got this .txt file:
asd fgh
zxc vbn
qwe rty
tyu iop
where the first word is the user name and the second the password. I want to ask the user to type in their name and password and then the program will scan the .txt file to find if the user is able to login.
I also would like to know how to use tolower. in this case I want to tolower the username. how should i go about doing that.
I'm not too sure how to do it, this is my current program. Its a Sign up and log in type of program where I'll be adding switch if the user login successfully.
I actually did google but I do not know how to apply it to my program