简体   繁体   中英

Reading a file auto-repeatedly

Using Visual Studio 2012 C#, I will make a program to open and read a text file within some periods auto-repeatedly.

Like this auto-repeat action, what kind of features should i use to be smooth process ? In this meantime, the other program will write this text file as well ?

Background worker ? any more suitable?

thank you.

Easiest and most effective way is to use timer. When timer fires you can use background worker to open text file and do some work then.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM