RE: Check whether file exists
I think he already knows how to check if a file exists, but he wants to know a way to keep continually checking untill the program exits. Without using Timers
I think the best way is to check if the file exists the first time and after that register a handle to watch filechanges in that directory.
EDIT: Watching filechanges is possible with FileSystemWatcher in .NET
This post was edited on 04-04-2007 at 09:29 AM by Ezra.
|