Hi.
I have to open a binary file from an old computer and recover the
information stored (or at least try to). I use:
f=open('file.bin','rb')
a=f.read()
f.close()
a in now a string full of hex representations in the form:
a[6]='\x14'
a[7]='\x20'
I would like to convert these hex representation
>
> Use ord(q)
>
> py> help(ord)
> Help on built-in function ord in module __builtin__:
>
> ord(...)
> ord(c) -> integer
>
> Return the integer ordinal of a one-character string.
>
> py>
>
> --
> Gabriel Genellina
Thank you Gabriel. It fit's my purpose.
--
http://mail.python.org/mailman
Hi, I'm really struggling to find the best GUI to make a simple
application.
I'm doing a program to load all the ini files in the current folder,
or the folder that the user chooses and list the specifics entries in
it.
So, the program would be like this:
Som tabs here like:
( Load | Edit | Opti