Re: StreamWriter.Write(bool value) --- How many bits/bytes should end up in the file?
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 06/15/04
- Next message: Niki Estner: "Re: Help with Regex and trying to mimic the VB "like" comparison"
- Previous message: Art: "Re: foreach loop confusion"
- In reply to: John: "Re: StreamWriter.Write(bool value) --- How many bits/bytes should end up in the file?"
- Next in thread: John: "Re: StreamWriter.Write(bool value) --- How many bits/bytes should end up in the file?"
- Reply: John: "Re: StreamWriter.Write(bool value) --- How many bits/bytes should end up in the file?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Jun 2004 17:46:21 +0100
John <johnfofawn@hotmail.com> wrote:
> Doh! You're right. I meant to say BinaryWriter.
Well BinaryWriter only writes out a single byte when you call
BinaryWriter.Write(bool). If you believe you have an example where you
believe it writes four bytes, please post it.
> I ended up writing a method that packs the bits into bytes and then
> writes the bytes out.
Right.
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: Niki Estner: "Re: Help with Regex and trying to mimic the VB "like" comparison"
- Previous message: Art: "Re: foreach loop confusion"
- In reply to: John: "Re: StreamWriter.Write(bool value) --- How many bits/bytes should end up in the file?"
- Next in thread: John: "Re: StreamWriter.Write(bool value) --- How many bits/bytes should end up in the file?"
- Reply: John: "Re: StreamWriter.Write(bool value) --- How many bits/bytes should end up in the file?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|