Is it possible to use exceptions with file opening as an alternative to using .is_open()
?
For example:
ifstream input;
try{
input.open("somefile.txt");
}catch(someException){
//Catch exception here
}
If so, what type is someException
?