From: Hugh Sasse Staff Elec Eng Date: 2004-11-23T21:39:42+09:00 Subject: Re: binary reading What about (written as if it were a patch): - a=File.open("c:\\1.txt") + a=File.open("c:\\1.txt", 'rb') a.each_byte { |byte| - print byte.to_s.unpack('b8'),' ',byte,' ' + print byte.chr.unpack('b8'),' ',byte,' ' } Hugh