This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: memort stream
- To: Emre Turkay <emre dot turkay at bilten dot metu dot edu dot tr>
- Subject: Re: memort stream
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Thu, 4 Oct 2001 13:19:45 -0400
- Cc: libstdc++ at gcc dot gnu dot org
- References: <1002110794.1255.23.camel@java>
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