From: Mike Hall Date: 2003-08-01T06:24:34+09:00 Subject: Re: Reading an integer out of 1..3 bytes > is there a rubysh way of reading 1,2 or 3 bytes >on an integer from an IO? Like with String 'unpack'? str.unpack( format ) -> anArray ------------------------------------------------------------------------ Decodes str (which may contain binary data) according to the format string, returning an array of each value extracted.