cout<<"File Name >";
ifstream input("filename.dat", ios::nocreate);
and the user inputs a file name that doesn't exist
is there a way to allow the user to enter the name again? The program halts if the file name is incorrect. I have tried putting this in a loop, but it seems like the program fails so it halts. Do I have to use exception handling?