Проверял на C++11 - работает
#include
#include
#include
#include
using namespace std;
#define FILENAME "input.txt"
int main() {
ifstream fin(FILENAME);
vector lines;
string s;
while (getline(fin, s))
lines.push_back(s);
cout << "Lines:\n";<br> for (int i = 0; i < lines.size(); i++)
cout << lines[i] << endl; <br> cout << "Count of lines: " << lines.size() << endl;<br> return 0;
}