- int main()
- {
- ifstream fichierIn("test.txt");
- ofstream fichierOut("testChiffre.txt",ios_base::trunc);
- if (!fichierIn.is_open())
- {
- cerr << "Impossible d'ouvrir test.txt" << endl;
- return -1;
- }
- if (!fichierOut.is_open())
- {
- cerr << "Impossible d'ouvrir testChiffre.txt" << endl;
- return -1;
- }
- // instructions
- }
