how do you close inmediately a file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how do you close inmediately a file?

how can you close a file while python is reading? i assume that once is completely readed the file will close...

15th Sep 2016, 9:59 AM
Felipe Sandoval Sibada
Felipe Sandoval Sibada - avatar
1 Answer
+ 3
yourfile.close()
15th Sep 2016, 10:06 AM
Zen
Zen - avatar