As far as I know the flag app
seeks to the end before each write
const ios_base::openmode std::ios_base::app [static]
Seek to end before each write.
the following program output is: recostream789
std::string str("t2: 123456789");
std::ostringstream ostr(str,std::ios_base::out|std::ios_base::app);
ostr << "recostream";
std::cout << ostr.str() << std::endl;
shouldn't it output: t2: 123456789recostream
instead?
I'm using vs2010