Is it possible to use exceptions with file opening as an alternative to using .is_open()?
.is_open()
For example:
ifstream input; try{ input.ope
From the cppreference.com article on std::ios::exceptions
On failure, the failbit flag is set (which can be checked with member fail), and depending on the value set with exceptions an exception may be thrown.