Question about Reading Files

MRAB python at
Sun Sep 5 02:03:05 CEST 2010

On 05/09/2010 00:04, genxtech wrote:
> Hello.  I am still really new to python and I have a project where I
> am trying to use the data files from another program and write a new
> program with new user interface and all.  My first step was to open
> one of the files in 'rb' mode and print the contents, but I am
> unfamiliar with the format.  Here is what was printed to the terminal:
> b'URES\x04\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f
> \x00\x00\x00\x03\t\x00c\x01\x00\x00\x0c#\x00\x00\x02\x1b\x00\x00\x00Y
> \x00\x00\x00\x08\x98"\x00\x00t\x00\x00\x00\x01\'\x01\x00\x00z$
> \x00\x00\x04,\xa7\x00\x00\xa1%\x00\x00\x05\x0b\x00\x00\x00o$\x00\x00\n
> \x11\x00\x00\x00\xcd\xcc\x00\x00\x0b\xf8\x00\x00\x00\xde\xcc
> \x00\x00\x0c\x19\x00\x00'
> I am using Python 3.1 on a Fedora 13 box if that makes any difference.
> Any advise on how to decode the data would be greatly appreciated.

I googled and found this:

which suggests "Universal Resource Editor (URE) that comes with the
OS/2 Toolkit".

More information about the Python-list mailing list