With closefile(), you can close an opened file.
Once a file has been read, you can apply the closefile() command to close the file.
filename: name of the file
The closefile() command does not take any options.
In the following example, we will close the file used in the openfile example:
The file is now closed for reading or editing.