Untitled
By: a guest | Feb 9th, 2010 | Syntax:
C++ | Size: 0.40 KB | Hits: 31 | Expires: Never
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
}