Alright guys, here's an an easy one...maybe you can let me know what the heck is going on here. For some reason, when I attempt to open an ifstream using a filename that doesn't exist, .bad() returns 0. Here's the exact code:
ifstream BankAccounts("accounts.dat", ios::nocreate);
cout << "Couldn't load file..." << endl;
accounts.dat DOES NOT EXIST!!! I have stepped through the program and for some reason the (state & badbit) expression is returning zero. Any ideas?