literal hex value to bin file.

yaipa h. yaipa at yahoo.com
Thu Oct 7 05:25:50 EDT 2004


All,

Sorry if this has been asked before, doing a search on c.l.p, I didn't
find this particular use case.

I wish to use the struct module, in windows, to pack hexdigits in such
a way that when I pack, say 0xa into a packed object, I can then use
it to find 0xa in a binary file.

Likewise, I wish to build a hex sequence from an Assembly language
.lst (text)file so that I can search for that sequence of hex digits
in a binary file.

Thanks,

  --alan



More information about the Python-list mailing list