I do different way, the problem is that I have 12 file to read.
After that I need split | (pipe) character.
Somone can help me read 12 files?
After that I need split | (pipe) character.
Somone can help me read 12 files?
with open('01Sped.txt', 'r') as f: dados = f.read() with open('02Sped.txt', 'r') as f: dados2 = f.read() output = dados+dados2 with open("spedFiscal.csv", "a") as myfile: myfile.write(output) print("Finished!")