Skip to content

Instantly share code, notes, and snippets.

@segfo
Created July 14, 2014 14:55
Show Gist options
  • Save segfo/8deb9c9d5934fd2f4403 to your computer and use it in GitHub Desktop.
Save segfo/8deb9c9d5934fd2f4403 to your computer and use it in GitHub Desktop.
import sys
import string
if (len(sys.argv)<2):
print "missing arguments."
exit()
f_in=open(sys.argv[1],"rb")
f_out=open("tanka.bin","wb")
for n in f_in.read().split(): f_out.write(chr(int(n,16)))
f_in.close()
f_out.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment