Math

From ROBOTC API Guide
Revision as of 14:49, 4 January 2012 by Bfeher (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Main >> NXT >> Functions >> Math

Below is a simple program highlighting the features of ROBOTC File IO:




Close

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.


Parameter Explanation
hFileHandle The handle of the file to close.
nIoResult The result of the IO operation.


Close(myFileHandle, IOResult);  // closes the file belonging to 'myFileHandle'
                                // and stores the result to 'IOResult'