diff --git a/archivos/manejo_archivos.py b/archivos/manejo_archivos.py index ab7c853..563988c 100644 --- a/archivos/manejo_archivos.py +++ b/archivos/manejo_archivos.py @@ -1,7 +1,9 @@ try: archivo = open('prueba.txt','w') + archivo.write('Agregamos informacion al archivo\n') + archivo.write('Adios') except Exception as e: print(e) finally: archivo.close() - + diff --git a/archivos/prueba.txt b/archivos/prueba.txt index e69de29..b6e901c 100644 --- a/archivos/prueba.txt +++ b/archivos/prueba.txt @@ -0,0 +1,2 @@ +Agregamos informacion al archivo +Adios \ No newline at end of file