I have a series of files in .txt and would like to sum them all together using a script in python.
something like:
#Abre o arquivo que receberá a soma de todos os outros
arq.open("redação.txt", "w")
#escreve todas as linhas de cada arquivo por vez (Aqui está meu problema!)
arq.write(arq=(texto1.txt + texto2.txt + texto3.txt + texto4.txt + texto5.txt))
#Fecha o arquivo
arq.close
I have already researched the sum of files and texts in python, but I did not find anything specifically this way