From: Joel VanderWerf Date: 2006-10-25T03:21:55+09:00 Subject: Re: Bitstuct and binary files Rob Lee wrote: > puts f.read(3).unpack('H6').first.to_i(16) I think you want 'h' instead of 'H', and you need to reverse the nibbles: puts f.read(3).unpack('h6').first.reverse.to_i(16) -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407