All pastes #341917 Raw Edit

Someone

public cpp v1 · immutable
·published 2007-02-05 23:09 UTC
rendered paste body
#include <iostream>#include <fstream>#include <string>using namespace std;void validerFichier(string nomFichier){     ifstream inFile;        inFile.open(nomFichier);        if (!inFile) {        cout << "Unable to open file\n";        exit(1); // terminate with error    }    inFile.close();}int main() {    string moo="test.txt";    validerFichier(moo);            system("PAUSE");        return 0;}