Geradot345

8

Dec 10th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. ifstream fil("lb8.txt");
  9. string str;
  10. int i=0;
  11. while (!(fil.eof())) {
  12. i++;
  13. fil >> str;
  14. }
  15. fil.close();
  16. ofstream fi("lb8.txt");
  17. fi << str;
  18. fi.close();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment