Closing a File
tags: #python/documentation/file_handling
To close an opened file in python, the close() function is used.
In Python, we must open files before we can use them and close them when we are done with them.
Changes made to a file (e.g., Writing to a File ) may not show until after the file is closed.
The function has no other specified parameters:
filename.close()