All pastes #341902 Raw Edit

Untitled

public cpp v1 · immutable
·published 2007-02-05 23:02 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    }}int main() {    string moo="test";    validerFichier(moo);        inFile.close();    system("PAUSE");        return 0;}