Making a login screen

I am trying to make a login screen in which I grab input from a login.txt file which contain the names and passwords of the people like this.

(name) (password)
Joe house

Dan sun

--------------------

I'm not sure how to compare if the users input for name and password is correct with the text file.
Topic archived. No new replies allowed.