Computer Science
Python automatically flushes the file buffers before closing a file with close() function.
Python File Handling
3 Likes
Answer
True
Reason — Python automatically flushes the file buffers when closing them i.e., this function is implicitly called by close() function.
Answered By
1 Like
Related Questions
If no path is given with a file name in the file open(), then the file must exist in the current directory.
Functions readline() and readlines() are essentially the same.
When you open a file for writing, if the file does not exist, a new file is created.
When you open a file for appending, if the file exists, the existing file is overwritten with the new file.