Advertisement
Guest User

Untitled

a guest
May 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <fstream>
  3. #include <iostream>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     ifstream FileInput("input.txt");    
  11.     ofstream FileOutput("output.txt");
  12.  
  13.     string String_Of_File;  
  14.     while (FileInput)          
  15.     {
  16.         getline(FileInput, String_Of_File);  
  17.         if (!String_Of_File.empty())              
  18.         {
  19.             FileOutput << String_Of_File;      
  20.             FileOutput << endl;            
  21.         }
  22.     }
  23.    
  24.     FileInput.close();
  25.     FileOutput.close();
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement