I would like to test if a file is used by another process.
I try to do the following code, have a look at it
but it returns true even if the file is opened. Do you have a similar program that is the source code of it. If you have such a code or have any idea of how to do it then please let me know I am the interested one here. Thanks in advance.Code:canRead() and canWrite()