Ok so another process creates a file. I want my program to figure out when that file is done being created. Right now it sets a file size and loops for 2 seconds and checks the file size again. This method sucks and makes the program appear locked up until the file is done being created.

Anyone have a better way to do this? I searched several items in the forum and the only thing I found similar said to loop and keep trying to open the file until I don't get any errors. Which i'm not sure if that's anybetter.