Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 14)
14.
What does the flush() method do when working with files?
Writes the file contents to the console
Clears the contents of the file
Flushes the internal buffer, ensuring data is written to the file
Closes the file
Answer: Option
Explanation:
The flush() method ensures that any buffered data is written to the file.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.