0

If I wanted to save the binary information of an executable as a string object in a .py file what would be the easiest way to go about that without receiving null byte and EOF errors.. I've messed around with converting each char to its ordinal and then separating them with a "." but that effectively quadruples the string size. I also read about the array and struct modules but am unsure of which direction to proceed. Any guidance would be appreciated.

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by vegaseat
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.