with open("datos.txt", "r") as original: with open("copia.txt", "w") as copia: for linea in original: copia.write(linea)