i have problem with strings is that i read a string from file and save it into another string and then compare with the another string which user enter
....basically i am going to design a login system in which first administrator make your user name and u set a password that data is save in the form of file and (i even cheek that the data which is write in file and save as it in the string ) when i compare the strings that user enter and the string which i read from file then it is always unequal
i used following methods but ....
================================================
if (strcmp(password,save)==0) {
} else {
}
===================================
if (password==save) {
} else {
}
==================================
if(strcmp(password.c_str(),save.c_str())==0) {
} else {
// in this case it is alway there even i enter the same password
}
plz help me out thank u....