How would I get my program to compare user imput to text stored in a file? Like checking to see if the user entered the correct password.

Thanks for the help.