Hi!
I´m writing on a program where a user will log in. The user enters a username and a password in a struct that is saved in a binaryfile on the harddrive.
When the user wants to login i´m thinking that the binaryfile will be read with fread and the user writes his password into an char array.
Then i would like to compare with the following:
char password == file->password
But this doesnt work! Even if the passwords are the same the expression is false.
Can someone explain why and explain if I could do this in another way? Is there a \n or \0 that i´m forgetting to check?
/Roger