Is my question to hard or to easy to answer? Can someone please 
comment? I'm playing with ruby + fbdev on my laptop so I can make 
mandelbrots everywhere I go!

Thanks,
Alwin


On 23-dec-03, at 22:36, Alwin Blok wrote:

> Hello!
>
> I'm new to ruby. I'm learning it and it seems to be a very nice 
> language.
>
> However, I do have a question about binary handling. I'd like to write 
> binary data directly to a file.
> I found that I can use myfile.write(["1001010100"].pack("B10")), but 
> i'd like to be able to write, for example 0b1001010100 directly to a 
> file. How do I do that, or else, are ther other useful ways to write 
> binary data to a file?
>
> Thanks in advance
>
> Alwin
>
>