$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] using my sink to write to the file.
From: Eric MALENFANT (Eric.Malenfant_at_[hidden])
Date: 2009-09-17 14:58:49
Patel, Anand wrote:
> Basically, I want to stream binary data to some file, and I must use
> SINK mechanism of boost, can someone please advise me on that.
>
Look up basic_file_sink, file_descriptor_sink and mapped_file_sink.
Note though that an std::ofstream could equally be used since (quoted
from Boost.IOStreams docs):
"As a special case, Boost.Iostreams treats standard output streams as
Sinks."