Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. fstream file;
  9. file.open("plik1.txt", ios::in);
  10. string textline;
  11. cout<< "zawartosc tego jebanego pliku: " <<endl;
  12. while(!file.eof())
  13. {
  14. getline(file, textline);
  15. cout<< textline <<endl;
  16. }
  17. file.close();
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement