title: Lock file for writing?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/128038/how-can-i-lock-a-file-using-java-if-possible">How can I lock a file using java (if possible)</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible to lock file so that other apps cannot write to file but can still run it normally?
  My target platform is windows.</p>