CLOSE #handle

This command is used to close files and devices.  This is the last step of a file "read" and/or "write" operation, and it is also used to close windows that have been opened.  When execution of a program is complete, if there are any files or devices left open, Just BASIC displays a dialog explaining that it was necessary to close the opened files or devices. This is designed as an aid so that the programmer can correct the problem. If for some reason the programmer chooses to terminate the program early (this is done by closing the program's main window before the program finishes), then Just BASIC will close any open files or devices without posting a notice to that effect.