I can read all string besides last "Yury Chen 88 3939202"
  ifstream file("text.txt");
  string s;
  int counter = 0;
  for(file >> s; !file.eof(); file >> s)
  {
    if (counter<=3){
      templist.push_back(s);
      counter +=1;
    }
    else{
      list.push_back(templist);
      counter = 0;
      templist.clear();
      templist.push_back(s);
      counter +=1;
    }
}
text.txt is
John        Jones        12  5412354
Kevin   Abatsa 23   6431264
Name    Surname      31    1239523
Yury Chen  88     3939202
Where is the problem?
 
    