Answer the question
In order to leave comments, you need to log in
How to read and convert a binary file?
Tell me how you can convert a binary file, such content: 49464F524D414454494F4E
file = open( 'data.log' , 'rb')
data = file.read()
print(data)
So that the output to the console is the same, without additional characters and conversion to ASCII
codes
: Answer the question
In order to leave comments, you need to log in
with open('data.log', 'rb') as f:
hexdata = f.read().hex()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question