convert a binary file in a list (python)

Posted by beratch on Stack Overflow See other posts from Stack Overflow or by beratch
Published on 2010-03-23T01:02:11Z Indexed on 2010/03/23 1:11 UTC
Read the original article Hit count: 437

Filed under:
|
|
|

Hi all,

I'd like to be able to open a binary file, and make a list (kind of array) with all the chars in, like : "\x21\x23\x22\x21\x22\x31" to ["\x21","\x23","\x22","\x21","\x22","\x31"] What would be the best solution to convert it ?

Thanks !

© Stack Overflow or respective owner

Related posts about python

Related posts about convert