Courses
LoginStart now
Courses
LoginStart now

Q&A Discussions

What will happened if we write 2 times file.close() statement?
filespython
1 Vote
5 Answers
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 Votes
3 Answers
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 Vote
5 Answers
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 Votes
3 Answers
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 Vote
1 Answer
27th Mar 2019, 4:41 AM
èƒĄè»’è±Ș
èƒĄè»’è±Ș - avatar
Hot today
Fast coding (mobile)
1 Votes
..
1 Votes
Beginner_to_SoloLearn
2 Votes
DSA doubt
1 Votes
Coding help
2 Votes
Bridge pattern use case
0 Votes
Hofstadter a sequence code coach is not running
0 Votes
Data structure using C
0 Votes
the code for bigneer is not really what to do after coding begeneer in sololearn
0 Votes
Input errors (python)
1 Votes