Hello,
I am currently writing an application that has wait until a file exist, if it exist, handle the contents and delete it and again wait until it is recreated by another process.
The only sollution I have found so far is the following:
The problem with this sollution is that it uses a lot of processor time. An obvious sollution would be to put pause 1. in the loop, but this causes unwanted delays.
Is there a simple way to solve this?
Thanks,
Jan
I am currently writing an application that has wait until a file exist, if it exist, handle the contents and delete it and again wait until it is recreated by another process.
The only sollution I have found so far is the following:
Code:
do while lContinue:
file-info:file-name = cFilename.
if file-info:full-pathname <> ? then
run process-file.
end.
Is there a simple way to solve this?
Thanks,
Jan