daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cstdlib>
  4. void ending()
  5. {
  6.     std::cin.get();
  7.     std::cin.sync();
  8. }
  9. int main(int argc, char * argv[])
  10. {
  11.     for(int i=0;i<argc;i++)
  12.         std::cout <<argv[i]<< std::endl;
  13.     std::ifstream file;
  14.     file.open(argv[1]);
  15.     if(!file.is_open())
  16.         std::cout <<argv[1]<<"ups";
  17.         exit(EXIT_FALIURE);
  18.     while(file.peek()!=EOF)
  19.     {
  20.         file.get();
  21.     }
  22.     ending();
  23.     return 0;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top