• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu

Q&A Discussies

What will happened if we write 2 times file.close() statement?
filespython
1 Stem
5 Antwoorden
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 Stemmen
3 Antwoorden
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 Stem
5 Antwoorden
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 Stemmen
3 Antwoorden
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 Stem
1 Antwoord
27th Mar 2019, 4:41 AM
胡軒豪
胡軒豪 - avatar
Populair vandaag
Python stressed me out
1 Votes
How often can you become a fully stuck developer?
1 Votes
Improve accessibility of this page
0 Votes
Course Doubt
1 Votes
If we already have the DELETE command in SQL, why do we need TRUNCATE?
2 Votes
Data analysis
0 Votes
What is a simple and easy way to learn ruby? :)
0 Votes
Lesson Takeaways
0 Votes
Saved code
0 Votes
Help
0 Votes