Notifications
Clear all

[Closed] Organising sequential files

I have a folder of sequentially numbered files that I need to read into Max 2012 periodically on a tick event to catch new files as they appear in the folder.

Outside of my control is the numbering format for the files which is:
1,2,3
10,11
…99,100

This means that when I get the list of files from the folder into an array with “getFiles” the files are sorted as follows:
0,1,10,100,101,102
.109,11,110,111 etc

Is there an efficient way for me to check this folder periodically for new files without having to scan through and compare every element of the array each time?

Thanks

2 Replies

the [b]FileSystemWatcher /b might be a right solution for you…
here is a sample http://forums.cgsociety.org/showpost.php?p=6987392&postcount=8

Thanks Denis,

I will try this out!