I have a file say text.csv
from which my java programs tries to read/write.
Is there a way in Java to detect if this file is opened for writing when the file has been opened by some user by "double clicking"? If so , how? I'm looking for this kind of code:
if(isOpenForWrite(File file){
//say text.csv is already opened ...
}
Any helpful documentation or other resources is welcome.