NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
unsigned int FindFirstFile ( string &  fname,
byte &  handle 
)
inline

Start searching for files.

This function lets you begin iterating through files stored on the NXT.

Parameters
fnameOn input this contains the filename pattern you are searching for. On output this contains the name of the first file found that matches the pattern.
handleThe search handle input to and output from the function call.
Returns
The function call result. See Loader module error codes.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_findfirstfile.nxc, and ex_findnextfile.nxc.