Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 51)
51.
What is the purpose of the file.flush() method?
Writes the buffered data to the file
Closes the file
Reads the file content
Moves the file cursor to the beginning
Answer: Option
Explanation:
file.flush() writes the buffered data to the file.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.