after a long time passed without writing because another function requires a lot of time, I noticed that I am not able to write into it as Python closed it for me (I still keep the file object stored in a variable, and I didn't use "with" for opening it)
Any solution please? Thanks in advance ^^
It's better to not keep resources open like that. Open when necessary.
Обсуждают сегодня