NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_syslistfiles.nxc

This is an example of how to use the SysListFiles function along with the ListFilesType structure.

task main()
{
args.Pattern = "*.rxe";
SysListFiles(args);
if (args.Result == NO_ERR && ArrayLen(args.FileList) > 0)
{
TextOut(0, LCD_LINE6, args.FileList[0]);
}
}