Marcin Miel¥Ê¥·y¥Ê§Ôki wrote:
> Gonzalo Rubio wrote:
> 
>> in a nutshell, my code goes like this:
>> File.open('sound.dat', 'r').each_byte do |byte|
>>   #...stuff to process the data...
>> end
> 
> open('sound.dat', 'rb')
> 
> 
> lopex

nice!

i just couldn't find it in the pickaxe 2 and forgot that ruby handles 
file open modes just like in C

thanks for your help.

-- 
Posted via http://www.ruby-forum.com/.