I have written a Java application that has to monitor a live log file. However I have not thought of the possibly of the file being locked, and that is exactly the case now.
Is there a way to disable the ability to add filelocks in a directory under Windows? If I would succeed, what would happen to the program writing to the logs (I think it's written in C#).
I am suspecting the logger locks the file to prevent it from being deleted, I cannot see any reason why it would need to prevent reads on it.
Does anyone perhaps know another solution to "cancel" the read-part of a file lock from within Java, if that even makes sense?