• Cursos
  • Compilador de CĂłdigo
  • Discutir
  • Preços
  • Teams
Menu

Q&A DiscussÔes

What will happened if we write 2 times file.close() statement?
filespython
1 Voto
5 Respostas
29th Mar 2016, 3:45 PM
Dinesh Ingole
Dinesh Ingole - avatar
Is the following syntax valid? file = open("filename.txt","r") print(file.read()) file.close()
filespython
0 Voto
3 Respostas
10th Jul 2016, 2:47 AM
Essam Mohamed Mahmoud Ahmed
Essam Mohamed Mahmoud Ahmed - avatar
file = open("/usercode/files/books.txt", "r")ï»ż ï»ż #your code goes hereï»ż ï»ż ï»ż file.close()
files
1 Voto
5 Respostas
2nd Jan 2022, 2:11 PM
Abiye Iniabere
Abiye Iniabere - avatar
Can only one file be open at once? If no, does the file.close() method close all open files...
filespython
0 Voto
3 Respostas
11th Oct 2016, 2:28 PM
Paul Obasi
Paul Obasi - avatar
can anybody tell me what has changed
"r")=contents")filefile.close()initialopen("newfile.txt"print("finished")print("readingprint(file.read())
1 Voto
1 Resposta
27th Mar 2019, 4:41 AM
èƒĄè»’è±Ș
èƒĄè»’è±Ș - avatar
Quente hoje
My codebits section is full of deleted codes
13 Votes
Ai generated practices
2 Votes
Solving coding challenges
0 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
Advertising in Sololearn
0 Votes
How can i insert files?
1 Votes
Hi who can hel me please
0 Votes
Changing String Variables into int in C++
0 Votes
I am new
0 Votes