Hi this is code simply compares an entered string of characters with a binary file entry. The only problem is when the two character arrays are compared and are the same they program is trating it like they are the same. Could someone please find the flaw in my program.
Code:
	char UserName[10];
	char Password[10];
	char Accounts[10];

	char EnteredUser[10];
	char EnteredPassword[10];

	long KeyCount = 0;

	cout << "Enter User Name:";
	cin >> EnteredUser;

	cout << "\nEnter Use Password:";
	cin >> EnteredPassword;

	ifstream Users("Data/Users.db", ios::in || ios::binary);

	while (!Users.eof())
	{
		Users.seekg(KeyCount, ios::beg);
		Users.read(UserName,10);

		//right here it isnt showing true when it should
		if (EnteredUser == UserName)
		{
			KeyCount = KeyCount+10;
			Users.seekg(KeyCount, ios::beg);
    		Users.read(Password,10);
			
			if (EnteredPassword != Password)
			{
				cout << "Incorrect Password";
				return 0;
			}

			if (EnteredPassword == Password)
			{
				cout << "Login is good";
				KeyCount = KeyCount + 10;
				Users.seekg(KeyCount, ios::beg);
				Users.read(Accounts, 10);	

				if (Accounts == "Admin")
				{
					Users.close();
					return 1;
				}
				else
				{
					Users.close();
					return 2;
				}
			}
			KeyCount = KeyCount - 10;
		}
		KeyCount = KeyCount + 30;	
	}
	cout << "Login Failed";
	Users.close();
	return 0;
}