C#: tail like program for text file

前端 未结 4 804
后悔当初
后悔当初 2020-12-30 11:18

I have a log file that continually logs short lines. I need to develop a service that reacts (or polls, or listens to) to new lines added to that file, a sort of unix\' tail

4条回答
  •  渐次进展
    2020-12-30 11:28

    Simple solution would be use , sample code provided in http://www.codeproject.com/Articles/7568/Tail-NET article. It is just one function copy/paste into your code.

提交回复
热议问题