C#获取文件更改事件 [英] C# get file change events
本文介绍了C#获取文件更改事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个程序现在我想程序的第二应用程序,它显示了一个表格,这些日志记录其中一些具体的事件,在一个文本文件(它保持文件打开)。结果
。
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?
感谢
推荐答案
这篇关于C#获取文件更改事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文