On Mon, 26 Jul 2004, Gianni Jacklone wrote:

> I need to read a binary string into memory and parse it using methods
> similar to Java's DataInputStream
> (http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html)
>
> I stumbled upon StringIO which I think is the closet thing to what I
> need? Anyone know of any good documentation for using StringIO, or
> dealing with binary data and parsing in general?
>
> Many thanks in advance, hope someone can shed some light...
> Gianni

if on *nix - look into guy's mmap module, the builtin strscan, and
String#unpack.  mmap is blindingly fast.

-a
--
===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it. 
|   --Dogen
===============================================================================