filename = input("Enter the path to the file: ") file = open(filename, "rb") cont = file.read() div = b"\xED\x33" path1 = "C:\\Users\\HUMAN\\Desktop\\Fonts\\" path2 = 1 path3 =".txt" i = 0 nconts = cont.split(div) file.close() for c in nconts: c += div path = path1 + str(path2) + path3 filen = open(path, "wb") filen.write(nconts[i]) filen.close() i += 1 print("Operation completed")