Boost logo

Boost :

Subject: Re: [boost] Proposed templated integer_sort
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-18 16:24:32


AMDG

Steven Ross wrote:
> What is the best platform-independent file I/O approach to use for writing
> and reading bytes? ofstream writes 4031 bytes when I tell it to write 4000
> on Windows, so that doesn't seem appropriate.
>

You probably need to open the file in binary mode.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk