That example doesn't help here, IdioticCreation, since we want to use an input stream and getline.

(TNT) Do you know how to use getline with cin or an ifstream? It is exactly the same, except you use the istringstream variable instead of cin or the ifstream variable. You'll want to do getline separately from push_back, since it fills the string with the data, it doesn't return it. Also, make sure you are using the proper version of getline. The MyStream.getline version is for C style strings, but you are using C++ strings.