From: Zach Dennis Date: 2004-11-23T13:11:50+09:00 Subject: Re: binary reading ruby talk wrote: > a=File.open("c:\\1.txt") > a.binmode > print a.read(1) > > it prints the char. how can i get and play with the bits and bytes of the file? a=File.open("c:\\1.txt") a.each_byte{ |byte| #play with each character/byte here } Zach