From: Daniel Carrera Date: 2003-05-06T06:10:40+09:00 Subject: Re: [Q] Binary data > > Is it possible to store and manipulate binary data in Ruby? [snip] > I can think of the following: > Bit operations w/ Fixnum, then Array#pack. Could you explain to me how to use Array#pack? PickAxe doesn't contain almost anything: Pickaxe: a = [ "a", "b", "c" ] n = [ 65, 66, 67 ] a.pack("A3A3A3")" # -> "a b c" a.pack("a3a3a3") # -> "a\000\000b\000\000c\000\000" n.pack("ccc") # -> "ABC" Where can I learn how to use Array#pack? Thanks, -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137