Python script to convert strings from hex to bin contained in a txt -


i looking simple script possibly in python can: -convert list of 4 bytes hexadecimal strings decimal

something like" script.py infile.txt outfile.txt

filename = "infile.txt" open(filename, 'r') f:     content = f.read() out = int(content, 16)  f = open('outfile.txt', 'w') f.write(str(out)) f.close() 

this came far... works if infile contains 1 line... still need figure out line line...


Comments