@FILECLOSE[n] : Closes the file whose handle is n. Returns 0 if the file was successfully closed, or -1 if an error occurred.
This function should only be used with file handles returned by @FILEOPEN! If you use it with any other number you may damage other files opened by TCC (or by the program which started TCC).
See also the related handle-based functions:
|@FILEOPEN||Open a file handle|
|@FILEREAD||Read next line from a file handle|
|@FILESEEK||Move a file handle pointer|
|@FILESEEKL||Move a file handle pointer to a specified line|
|@FILEWRITE||Write next line to a file handle|
|@FILEWRITEB||Write data to a file handle|
|@TRUNCATE||Truncate the file at the current position of the file handle pointer.|
echo writing %@filewrite[%h,this is a test] bytes
echo closing handle #%h: %@fileclose[%h]