From: ts Date: 2009-01-16T18:23:59+09:00 Subject: to_s(base=2) in 1.8 only? f.each_byte {|x| print x.to_s(base=2).rjust(8,'0') the above will fail in 1.6.4 wanna ask if to_s(base=2) is only available in 1.8? my intention is to get each byte and output it as 10101010 format. Is there any way that i can do that in 1.6.4? thank you.