getline()
is what you're looking for. You use strings in C++, and you don't need to know the size ahead of time.
Assuming std namespace:
ifstream file1("myfile.txt");
string stuff;
while (getline(file1, stuff, '\n')) {
cout << stuff << endl;
}
file1.close();