Boost logo

Boost Users :

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."


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