This should do the trick:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string line;
ifstream infile;
infile.open("putyourinputfilehere.txt");
while(getline(infile, line))
{
if(line != "")
{
cout << line << endl;
}
}
infile.close();
return 0;
}