I use FileSystemWatcher to monitor some folder for changes.
When it fires file changed event, I need to read that file and update some stuff.
The problem is that when this event is fired, target file is still forbidden to read even in this way FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
Is there any other events notifying that file ended change? Or anyway to create some waiter that will wait for file read ability via some standard ways (WinAPI or etc). Or maybe looping try catch is the only choice?