From: Alexey Verkhovsky Date: 2004-07-26T03:31:23+09:00 Subject: Re: Reading binary data with String or StringIO? On Sun, 2004-07-25 at 20:09, 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? Look at String#pack and String#unpack Best regards, Alexey Verkhovsky