Quote Originally Posted by WaltP
Argggghhhh!!! (this to the other helpful posts)
What you did wrong is not find out what was actually read from the file/user.

This is always the easiest way to find out what is wrong. It works most of the time:
After you read password, display it:
Code:
cout << "[" << password << "]" << endl;
Surrounding the input with [ and ] lets you see of the newline is in the value or not.
thank you, turns out i needed to put C://password.txt instead of password.txt but it works now

thank you for your help