-
-
Save parzibyte/5f96c4d2d819ef3c3832201628c3460b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Especificar al abrir para leer | |
with open("archivo.txt", encoding="utf-8") as archivo: | |
# Y al abrir para escribir | |
with open("salida.txt", "w", encoding="utf-8") as a: | |
for linea in archivo: | |
print(linea) | |
a.write(linea) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment