What is the use of close() method ?
Question :
What is the use of close() method ?
The close() will be used to close the file object, once we have finished working on it. The method will free up all the system resources used by the file, this means that once file is closed, we will not be able to use the file object any more.