Hi,
i wish to know the difference between the following two code?
ifstream fin(fname,ios::in);
vector<string> temp;
while(getline(fin, line)
{
temp.push_back(line);
}
and
while(!fin.eof())
{
getline(fin,line);
temp.push_back(line);
}
thanks