From: nobu.nokada@... Date: 2002-06-01T21:52:50+09:00 Subject: Re: Reading binary files (or strings) Hi, At Sat, 1 Jun 2002 21:09:54 +0900, Han Holl wrote: > but as you can imagine performance is horrible. > What I seem to need is either: > string.unpack(format, offset) ## which I couldn.t find, but string.unpack("@#{offset}format") > or: > iostream.unpack(format) ## not found either. You can use StringIO. :pserver:anonymous@cvs.ruby-lang.org:/src/rough/ext/stringio/ or included in 1.7 -- Nobu Nakada