CLOSE
CLOSE #handle
Close a currently open file. To close all files, use Close without a handle number.
' Append text to a file, and then close it
OPEN "tmp.txt" FOR APPEND AS #1
PRINT #1, "Some text"
CLOSE #1
Also see fClose.