#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, const char * argv[])
{
string cad;
ifstream f("file.txt");
if (!f.is_open())
cout << "no se pudo abrir" << endl;
else {
while (!f.eof()) {
getline(f, cad);
cout << cad << endl;
}
}
return 0;
}