Originally posted by Ulf Dittmer:
I assume you mean "read", not "red".
To add to what Ulf has told.
There is no straight forward way of knowing whether some process/user has read a file or not.
If your program is the only one reading the file then you can create a dummy file in the same location that is created whenever you start reading it.
This will be useful when your code runs in multiple threads/processes (scanners for a directory) and you do not want a file to be processed more than once.