the loop is to check is if the file I want (matches the string) exists, and if it does, keep processing, until the file are no more available
I think my code is wrong logic wise
what is should do is,
1) check if file matching abc.txt.(number) is available or not. eg,
abc.txt.2009070198763
2) if its available, do code
3) if its not available, break loop, exit code.
can anyone come up with a basic code for this please? thank you very much!
check latest file matching string abc.txt.nnnnnnnnnnnn
if exists,
do blablabla
(at final stage I will remove the file processed just now ($lastfile), then,
repeat loop
else (if file not found at the beginning or during next loop)
break loop
exit