Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //tutorial 11 q2
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- int mian(){
- fstream copy("Results.txt", ios::in);
- fstream paste("Copy.txt", ios::out);
- string line;
- if(copy.is_open()){
- while(!copy.eof())
- {
- getline(copy, line);
- paste << line <<endl;
- }
- }
- copy.close();
- paste.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement