The goal is to periodically read files from a folder to which another program outputs them, and then feed the files into another part of my code.
How can I accomplish this with the best trade off between performance and readable and easy code?
(I need to accomplish this in both C# and Java. hence the double tagging, (and no, this is not homework :))