NXC: runtime error using SysListFiles
Posted: 13 Feb 2011, 13:31
I get a runtime error (File Error -1) using this code - why?
Code: Select all
char LCDline[]={56,48,40,32,24,16,8,0};
task main()
{
int i=1, j=1;
ListFilesType args;
args.Pattern = "*.rxe";
SysListFiles(args);
while (args.Result == NO_ERR && ArrayLen(args.FileList) > 0)
{
TextOut(0, LCDline[i], args.FileList[j]);
if(i<7) i++;
j++;
}
while(true);
}