Created
December 27, 2018 21:27
-
-
Save parzibyte/e903fe9ecb39b1d75984354d97e5ed4f to your computer and use it in GitHub Desktop.
Leer todo el contenido de un archivo en Python 3 created by parzibyte - https://repl.it/@parzibyte/Leer-todo-el-contenido-de-un-archivo-en-Python-3
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
Hola, soy un archivo de texto para demostrar algunos tutoriales de parzibyte.me. Puedo contener cualquier tipo de contenido, por ejemplo, saltos, | |
tabulaciones | |
y cualquier | |
otra | |
cosa. |
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
""" | |
Ejemplo simple de cómo leer un archivo | |
completo en Python 3 | |
@author parzibyte | |
""" | |
nombre_archivo = "archivo.txt" | |
with open(nombre_archivo, "r") as archivo: | |
contenido = archivo.read() | |
print("El contenido es:", contenido) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment