how do you close inmediately a file? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 3
yourfile.close()
15th Sep 2016, 10:06 AM
Zen
Zen - avatar