void User_Psw::UserCheck()
// read from the database
ifstream fin("dataBase.txt");
while (!fin.eof())
fin >> Usernames[sizeOfDatabase] >> Password[sizeOfDatabase];
sizeOfDatabase++; //The Number of lines in .txt
// rest of the program
cout << "Username: ";
cin >> username;
getNameIndex();
cout << "Password: ";
cin >> password;
if(!PasswordMatches())
cout << "Access denied";
}