K
Keith
I am writing a web service that sends work to a system that gets it's
work via XML files. This system looks for files in a particular
directory, processes the file, then leaves a response file in the same
directory. What is the best way to wait for the reponse file? Is there
a better way than going into the following loop?
while(!System.IO.File.Exists(reponseFile) {
System.Threading.Thread.Sleep(1000);
}
thanks,
-Keith
work via XML files. This system looks for files in a particular
directory, processes the file, then leaves a response file in the same
directory. What is the best way to wait for the reponse file? Is there
a better way than going into the following loop?
while(!System.IO.File.Exists(reponseFile) {
System.Threading.Thread.Sleep(1000);
}
thanks,
-Keith