Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Checking if file is in use  RSS feed

 
John Fairbairn
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using a JDK version prior to 1.4, what is the best way to check if a file is being used by another application?
For instance, a VB application creates and writes to FILEA in a directory. At the same time, a Java program tries to open and read FILEA from the same directory. What is the best way for the Java program to check if the file is still being used by the VB application.
Thanks in advance,
John
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!