Table of Contents
show
Close File
- close( ) function closes the file and frees the memory space acquired by the file
- It is used at time when file is no longer needed or if the file is to be opened in a different mode
Syntax
fileobj.close( )
After closing a file, no operation can be performed on the file.
Views: 0