Created
July 14, 2014 14:55
-
-
Save segfo/8deb9c9d5934fd2f4403 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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