Skip to content

Commit

Permalink
Fixed file writing in option 3
Browse files Browse the repository at this point in the history
  • Loading branch information
OrtegaRehbach committed Sep 27, 2023
1 parent e3f9729 commit a40b621
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@

# Guarda los resultados en el archivo
with open(afd_output_file, "w", encoding="utf-8") as file:
file.write(afd_results)
print("Result written to", afd_output_file)
sys.stdout = file
print_afd_results()
sys.stdout = sys.__stdout__ # Restaura la salida estándar

if option == "4":
print("")
Expand Down

0 comments on commit a40b621

Please sign in to comment.