Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: C++ | Size: 0.40 KB | Hits: 31 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. int main()
  2. {
  3.     ifstream fichierIn("test.txt");
  4.     ofstream fichierOut("testChiffre.txt",ios_base::trunc);
  5.    
  6.     if (!fichierIn.is_open())
  7.     {
  8.         cerr << "Impossible d'ouvrir test.txt" << endl;
  9.         return -1;
  10.     }
  11.    
  12.     if (!fichierOut.is_open())
  13.     {
  14.         cerr << "Impossible d'ouvrir testChiffre.txt" << endl;
  15.         return -1;
  16.     }
  17.    
  18.     // instructions
  19. }