From: Ken Bloom Date: 2009-01-17T00:09:08+09:00 Subject: Re: to_s(base=2) in 1.8 only? On Fri, 16 Jan 2009 01:21:15 -0800, ts wrote: > f.each_byte {|x| print x.to_s(base=2).rjust(8,'0') Can't speak to the Ruby 1.6 issue, but the base= doesn't add anything to your code (it just assigned 2 to a local variable). Just call x.to_s(2) --Ken -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/