Close

Close
Objects that have been opened with the **Open** statement must be closed with the **Close** statement. This applies to files opened for random access and files opened for sequential access.

The syntax is as follows:

CLOSE #handle //- Close the file or object #handle//

Sample code:

code format="vbnet" open DefaultDir$ + "\public\filetest2.txt" for append as #f print #f, "End of test." close #f code