how do you close inmediately a file? | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
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 Odpowiedź
+ 3
yourfile.close()
15th Sep 2016, 10:06 AM
Zen
Zen - avatar