0
Why it's not working ?
# FILE HANDLING file = open("index.html", "a"); file.write("<!-- Hello, World! -->") file.close() print(file.read())
2 odpowiedzi
+ 2
Add>>> file=open("index.html","r")
between file .close() line and
print() line.
!! Don't forget to call read mode("r")
+ 3
How can you read a file after closing it ? And the read method also depends on the mode in which file is opened .