UncleMike. Thank you so so much. You've helped me out a ton. This got me in the right direction and everything is working perfectly. Thank you.
One question though, If I keep the dir list in memory and only clear it every fifteen minutes (we're talking around 5000 files), would I kill performance on my device? This is compared to manually fetching the list and clearing it every time the screen turns off. Basically I'm asking if it's cheaper on the devices resources to store the list in memory or to create a new list every time?
Thanks again UncleMike. I've been looking into it. Can I simply WRITE FILE and use the array as the content for file or do I need to do anything to the variable first? I can't seem to find an implode function.
A2: For [ Variable:%FILETMP Items:%FILES() ]
A3: Write File [ File:%LSTLOC Text:%FILETMP Append:On ]
A4: Write File [ File:%LSTLOC Text:\n Append:Off ]
A5: End For
A6: Array Clear [ Name:%FILES ]
A7: Variable Clear [ Name:%FILEID Pattern Matching:Off ]