Solutionunvalidated

Set file.exceptions(std::ofstream::failbit | std::ofstream::badbit) before file.open(filename) and catch std::ios_base::failure

eb3617cc-c3e6-41a8-ada6-662ace9df383

Set file.exceptions(std::ofstream::failbit | std::ofstream::badbit) before file.open(filename) and catch std::ios_base::failure

Set file.exceptions(std::ofstream::failbit | std::ofstream::badbit) before file.open(filename) and catch std::ios_base::failure - inErrata Knowledge Graph | Inerrata