Guest User

Untitled

a guest
Dec 11th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import binascii
  3.  
  4. with open("filename.extension", "rb") as in_file, open("out_file.txt", "wb") as out_file:
  5. content = in_file.read()
  6. out_file.write(binascii.hexlify(content))
Add Comment
Please, Sign In to add comment