From: SonOfLilit Date: 2007-02-20T03:39:46+09:00 Subject: Re: byte array to string Strings are the ruby way to store arbitrary stuff in memory. You don't necessarily need to access them as strings, they are just general dynamically-allocated buffers of memory. If you want something similar to C byte arrays, in ruby use strings. e.g. for holding pixel data. You don't need to PRINT it as a string, you just use String to store it. That's why String has methods to get such values and turn them into Ruby arrays, that is unpack (and pack, which does the opposite). PLUG: http://rubymentor.rubyforge.org/wiki/wiki.pl RubyMentor is looking for newbies to Ruby who could use our help On 2/19/07, Jim Bob wrote: > I'm sure the must be code for this already without me having to go > through the array byte by byte. > > I have an array of bytes, I need to print this as a string? > > Note the array does not contain text. > > Thanks, > Jim > > -- > Posted via http://www.ruby-forum.com/. > >