Boost logo

Boost Users :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-11-22 13:07:46


Christian Henning wrote:
> Pedro, I have been using iostream's file_sink and file_source with the
> binary flag and everything is working fine.

Glad to hear it.

> One hint, if you're
> opening file with that flag I would use the read() or write() of the
> std:: fstream interace, only. I have had bad experience with all those
> operator >>() .

The formatted i/o operators such as << and >> treat whitespace specially and so
aren't well suited for binary i/o.

> Greets,
> Christian

-- 
Jonathan Turkanis
www.kangaroologic.com

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