Thanks WY.
When I write the stringstream 'solution' really I wanted to show what i want.
My main doubt is 'I cannot use iostream' ? How can I create I iostream instance ?
My goal is to have a 'binary element' just in memory not in a file.
Reading the io reference, I have only acces to stringstream or fstream, ins't ?
I dont understand how to use streambuf directly, i cant?
And, your example is very useful, thanks.
Bookmarks