files was uploaded via FTP,it thows a IO Exception that file was occupied
var watcher = new FileSystemWatcher();
watcher.Created += (sender, e) =>
{
var lines = File.ReadAllLines(e.FullPath, Encoding.UTF8); //io exception here
};
waiting for your answer,thanks a lot.