memort stream

Phil Edwards pedwards@disaster.jaj.com
Thu Oct 4 10:18:00 GMT 2001


On Wed, Oct 03, 2001 at 03:06:34PM +0300, Emre Turkay wrote:
> Is there a memory only stream in C++ standards or in libstdc++. Just
> like fstream but stored in the memory instead of a file ?  I don't mean
> strstream.

That's like asking, "how do I turn a car without using the steering wheel?"
:-)  The strstream classes have been replaced by stringstreams, which do
the memory handling for you; they are based on std::string rather than
on char*.  Look for the <sstream> header.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Libstdc++ mailing list