Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import binascii
- with open("filename.extension", "rb") as in_file, open("out_file.txt", "wb") as out_file:
- content = in_file.read()
- out_file.write(binascii.hexlify(content))
Add Comment
Please, Sign In to add comment