1 Reply Latest reply: Sep 23, 2007 1:00 PM by 807605 RSS

    how to find file is open or not in java

    807605
      hai;

      i want to know that , the particular file is opened on eariler or not,

      can you help me how to find out , the file is earlier opened or not

      thanks regards
        • 1. Re: how to find file is open or not in java
          807605
          davvidmaria wrote:
          hai;

          i want to know that , the particular file is opened on eariler or not,

          can you help me how to find out , the file is earlier opened or not

          thanks regards
          What do you mean by opened on earlier or not?
          If you want to check to see if a certain file is open you could probably use the file class and check to see if you can write to the file check out the api

          [http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html]