How to tell if a program is reading or writing to a file

Dec 30, 2020 at 10:25pm
Hi, I'm trying to see if a program is writing to or reading a file with vc++. I know you can tell if a program is using a file with handle scanning, but I want to find out if it's reading or writing to the file. Any help would be appreciated.
Dec 30, 2020 at 11:26pm
the operating system knows. Can you ask it? (I don't know the answer, but I am offering a line of inquiry to dig into). If the OS can't or won't tell you, the hard disk driver may also be able to tell you, but it may also all be in addresses that you can't make sense of at that level (I Don't know that either!).
Last edited on Dec 30, 2020 at 11:27pm
Dec 31, 2020 at 4:58am
This smells like a https://xyproblem.info/
What is the real problem to be solved here?
Dec 31, 2020 at 3:12pm
I'm trying to make my own disk activity monitor like the Disk tab in Resource Monitor but a CLI version. please see: https://imgur.com/a/wE9ZNfw
Jan 1, 2021 at 4:29pm
Topic archived. No new replies allowed.