12345
stringstream s; s.str(readBuf); ...some estrades with sstream, it possibly can change it's content...
123
s.str(""); s.str(string()); s.str(readBuf2);
12
s.clear(); s.str(readBuf);