
17 Sep
2009
17 Sep
'09
6:58 p.m.
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."