I am monitoring a folder for new files and need to process them. The problem is that occasionally file opening fails, because system has not finished copying it.
Wha
You should also cover cases like: file is in use by other program, file was deleted (copy didn't succeed) etc..
Use an extended exception handling to cover all important cases that might occur.