$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.