1) Create a
timer[
^] and assign an eventhandler-method to its
Elapsed
-event (see link).
2) Have the code for opening and closing the file outside of that eventhandler-method. The StreamReader-object should be accessible to the eventhandler-method though (in its scope).
3) In the eventhandler-method do the
.ReadLine()