Boost logo

Boost Users :

From: Jabin Reinhold (jdreinhold_at_[hidden])
Date: 2007-04-02 15:42:48


gchen <chengang31 <at> gmail.com> writes:

> Try this:
>
> boost::iostreams::filtering_streambuf<boost::iostreams::output> > outStream;
> outStream.push(boost::iostreams::gzip_compressor());
> outStream.push(boost::iostreams::file_sink("c:\\test.gz",
> std::ios::binary));
> boost::iostreams::copy(sStream, outStream);
>

At your suggestion, I replaced both the std::ifStream and std::ofStream with
boost::iostreams::file_source and boost::iostreams::file_sink respectively.
The results are the same.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net