Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
String to hexadecimal conversion
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="John Machin, post: 3627200"] *IF* all the data consists of unsigned 8-bit integers a_byte = f.read(2) uint8 = int(a_byte, 16) But I doubt it and that would be rather slow anyway. If your data is homogenous, look at the array module. Otherwise, once you've worked out how to break your file down into records, and what the layout of each record is, you'll need the struct module. HTH, John [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
String to hexadecimal conversion
Top