How to read a file continuously?

Hello.

I'm having trouble with reading continuously a data file so that I can use it in my program. The program should be able to monitor an external file and every time a data.csv, i.e., is put in the file, it must read it and use it.

Don't know if I made myself clear. Any suggestions or hints I'd be greatful.


Thanks a lot.
File or directory?
The data.csv file is in an external directory. I want to monitor this directory. I believe that's it.

Sorry about the confusion.
Topic archived. No new replies allowed.