New course! Every coder should learn Generative AI!
Try a free lesson0
Problem writing and reading file
2 Answers
+ 1
second function "open" is in writing mode, and clears the file created in the first "open"
- 1
The first flag is that your file names need an extension: such as "prueba.txt".