Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 4)
4.
How can you close a file in Python after performing operations on it?
file.close()
close_file(file)
file.end()
end_file(file)
Answer: Option
Explanation:
To close a file in Python, you should use the close() method on the file object.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.