how to check if a file is being written to in java
Posted on 2002-06-14
I need to perform some operation on a file (e.g. move or delete), but NOT when it is currently being written to by some other process.
I believe this is easily done in "C". Is there JAVA equivalent? (I checked java.io.File; it does not have what I need). I would like to do this in pure JAVA, and not use JAVA/c.