Guest User

Untitled

a guest
Nov 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4. #include <cstdio>
  5. using namespace std;
  6.  
  7. int main()
  8. { ifstream fileobj;
  9. fileobj.open("IntegerArray.txt");
  10. int n=0;
  11. if(fileobj.is_open())
  12. { cout<<"yes";
  13. while (!fileobj.eof()){
  14. fileobj>>n;
  15. cout<<n;
  16.  
  17. }
  18. }
  19. fileobj.close();
  20.  
  21.  
  22.  
  23. std::getchar();
  24. }
Add Comment
Please, Sign In to add comment