How does Read File watch for changes?

How does read file watch for changes in the file it is reading? It is so smooth and never has any errors. I have tried justĀ attachingĀ a timer to my component externally, but then it is being force to check the file rather than watching for changes and only updating when it is needed.

Thoughts?

Thanks!