Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- int main()
- {
- ifstream fil("lb8.txt");
- string str;
- int i=0;
- while (!(fil.eof())) {
- i++;
- fil >> str;
- }
- fil.close();
- ofstream fi("lb8.txt");
- fi << str;
- fi.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment