Guest User

Untitled

a guest
Oct 18th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5. int main()
  6. {
  7.     std::fstream plik;
  8.     plik.open( "hej.txt",ios::in );
  9.  
  10.     if(plik.good() == false)
  11.     {
  12.         cout << "Nie otworzyl" << endl;
  13.     }
  14.     else
  15.     {
  16.         cout << "Wyglada dobrze";
  17.     }
  18.     plik.close();
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment