При компиляции у меня 'getline' не была объявлена в этой области
компилирует следующий код:
string PostCmd::getFailedFromFile()
{
string failedList;
ifstream file(FILE, ifstream::in);
if (file.is_open())
{
getline(file, failedList);
file.close();
}
else
{
cout << "Unable to open file";
}
return failedList;
}