On Apr 29, 2007, at 11:13 AM, Garry Bettle wrote: > My biggest concerns are to make sure that I'm not trying to > read\process a file that is being written to. ADIR() seems to return > the files in date order, so I thought I could always process the > number of files returned - 1. My process will write a finished file, > i.e. Closed.txt, when it's done writting the files. I can't wait > though for that file and process the files all at once - I need to > process as many files as possible as soon as they appear in the > directory.
You could try using FOPEN(). If the file is still being written, FOPEN() will fail. -- Ed Leafe -- http://leafe.com -- http://dabodev.com _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.