I think you would need to author a bash script to do this if you need help with that it might be better asking on Stack Overflow because it's script development.
While this is possible if the distribution used supports
atime some don't be the default they explicitly mount the filesystem with
noatime in this case you would not be able to know when the file was last read and only when created or modified (updated is the same thing) the other option that is used but would work for you is
realtime this would only update the file last accessed normally once per day.
To check this use
ls -l --time=atime you can then use this in a bash script with
ls -ls --time=atime | while read line
As I said above that is the tool you need if you need a script building to do this for you I would say you should be on stack overflow and not server fault while this is a server building a script falls more into the programming side than the server management side of the two sites.