[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: opening a file in binary mode
- From: Lenny Palozzi <lenny.palozzi@...>
- Date: Tue, 20 Mar 2001 17:12:31 -0500
On Tue, Mar 20, 2001 at 11:03:52AM -0300, Luiz Henrique de Figueiredo wrote:
> >I would guess that write would write the value as a string if I passed a string, the number value in binary if I passed a number.
>
> No, the 'b' specification only affects newline conversion.
> --lhf
The manual says:
The mode string may also have a b at the end, which is needed in some systems to open the file in binary mode. This string is exactlty what is used in the standard C function fopen.
In any case, how do I open a file in binary and write binary data to it? (I don''t want my numbers converted to strings, as that's what seems to be happening)
-Lenny.