开发者

C# get file change events

开发者 https://www.devze.com 2023-01-20 01:30 出处:网络
I开发者_开发百科 do have a program which logs some specific events in a text file (it keeps the file open).

I开发者_开发百科 do have a program which logs some specific events in a text file (it keeps the file open).

Now I want to program a second application which shows these logs on a form.

can I set an event for any change in a text file which is opened by another process? or I have to read that regularly?

thanks


Have a look at the FileSystemWatcher Class

0

精彩评论

暂无评论...
验证码 换一张
取 消