the use of both checking if the ifstream object used to call the open function is NULL and whether the ifstream object's fail member function returns true : ifstream « File « C++
the use of both checking if the ifstream object used to call the open function is NULL and whether the ifstream object's fail member function returns true
#include <fstream>
#include <iostream> using namespace std;