From: Daniel Harple Date: 2006-03-22T08:13:11+09:00 Subject: Re: Newbie: How do I get hex formatted bytes from a file? On Mar 21, 2006, at 11:43 PM, Wes Gamble wrote: > Daniel, > > Not to be obtuse, but what is the # sign for in the specification? > > And what is the mod 100 -> 0x64 business about? > > wg Sorry, I misread your question. What you need is String#unpack. Do a 'ri String#upack'. String#% is the format method. It's function is the same as printf. See Kernel#sprintf for a list of format options (including #). -- Daniel