阅读背景:

如何在C#中检测截断的文件

来源:互联网 

If I'm reading a text file in shared access mode and another process truncates it, what is the easiest way to detect that? (I'm excluding the obvious choice of refreshing a FileInfo object periodically to check its size) Is there some convenient way to capture an event? (Filewatcher?)If I'm reading a text file in shared access mod




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: