Is there another way to use wildcards then in the following statement, because it doesnt work in C/AL code. While on this subject, is there a way to read what files are in a folder and then loop thru them using C/AL code?
IF EXIST ('C:\*.txt') THEN
ERASE ('C:\*.txt');
0
Comments
You'll have to use the virtual table Files, and use REPEAT ... UNTIL structure to loop through the files within a directory. But you can set a filter, to filter out only the txt-files!