This discussion is archived
1 Reply Latest reply: Sep 23, 2007 11:00 AM by 807605 RSS

how to find file is open or not in java

807605 Newbie
Currently Being Moderated
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 Newbie
    Currently Being Moderated
    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]