I am trying to open a file with a program but it keeps failing. I typed the file into notepad and saved it as a .dat file. Does anyone have any ideas why this is happening?
using namespace std;
string filename = "bank.dat";
cout<<"\nThe file named "<<filename<<" was not successfully opened"
<<"\nPlease check that the file currently exists."
cout<<"\nThe file has been successfully opened for reading."