Byte arrays

Array#pack

···

On Sat, 17 Apr 2004 21:32:47 +0000, Jeff Massung wrote:

Sorry for [what is probably] a very newbie question, but is there any way
to specify just a straight byte array in Ruby? I want to just be able to
write the array directly to a binary file, but using regular ints will
(I’m assuming) write 32-bit values, and not bytes.