TextFile.close()

Closes the file. It is important to close the file, if not, the file will remain open and for example, you will not be able to delete it.