D
deerchao
I'm using FileSystemWatcher to watch the new file creation. When there
is one, I want to open it and read it's content. But, by the time when
I got the message from FileSystemWatcher the file may be still hold by
the process who just created it, writing data.
So is there any way I can detect if a file is open or not? Or can I
wait untill the file is free? Or there is another solution?
Thanks!
is one, I want to open it and read it's content. But, by the time when
I got the message from FileSystemWatcher the file may be still hold by
the process who just created it, writing data.
So is there any way I can detect if a file is open or not? Or can I
wait untill the file is free? Or there is another solution?
Thanks!