Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <fstream>
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- ifstream FileInput("input.txt");
- ofstream FileOutput("output.txt");
- string String_Of_File;
- while (FileInput)
- {
- getline(FileInput, String_Of_File);
- if (!String_Of_File.empty())
- {
- FileOutput << String_Of_File;
- FileOutput << endl;
- }
- }
- FileInput.close();
- FileOutput.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement