From ROBOTC API Guide
Below is a simple program highlighting the features of ROBOTC File IO:
|void Close(TFileHandle hFileHandle, TFileIOResult &nIoResult)|
|Closes the specified file handle. This should be the last file I/O operation after all reads or write are completed. 'nIoResult' is non-zero when error occurs.