Capture File and Folder Opening events in C# : I have a friend who live in HOSTEL, his roommates aren’t very trustworthy people, he said to me, to make something for him, so that He could know which files and folders were opened in his absence by his roommates? _(They have a mutual agreement of not opening someone personal folders)_ _(He is supposed to share PC and can’t hide or encrypt his personal folders)_

So I decided to go with C# because my friend is using Windows OS.

So The task is to make a Windows Form Application that will logs name and location of every file and folder opened by user _(in file or DB doesn’t matter)_ during the application running time.

I know there is a class of `FileSystemWatcher` but it only has four events of Changed, Created, Deleted & Renamed which I don’t need at all, It doesn’t matter if your is changing or deleting or creating or renaming something, all it does matter is which files & folders are opened by user ...?


If it could be done in Java I am also ready to give it a shot, just point me in the right direction !!