eof() does not look into the future. So, when you are right before EOF, you will read it also into your vector and probably corrupt it.
A better way to read all lines into a vector is:
string line;
while(getline(inFile, line)
text_list.push_back(line);
Your loop will break once you've read an EOF or when any other error has occured.
Another method is using iterators and the algorithm library:
copy(istream_iterator<string>(inFile), istream_iterator<string>(),
back_inserter(text_list));
It's up to you which one you prefer.