Original Post
I can't get stringstream to work correctly. It accepts the first input and ouput, but if I try to give it any input after that, it fails to work any longer. I did notice that if I always keep something in the buffer, it will still accept input and output. The problem arises by the fact that I sometimes want to clear the buffer (it reads in object files that contain things such as comments, which should be discarded). getline(iStream, input); sStream << input; sStream >> scratch; sStream >> item; getline(iStream, input); sStream << input; sStream >> scratch; sStream >> health; etc...