#include <iostream> #include <fstream> void externalResourceProblem() { std::ifstream file("nonexistentfile.txt"); if(!file) { std::cerr << "Unable to open file" << std::endl; } }