Check whether a file is opened or not through java

Posted on July 8, 2008
Filed Under Java |

How do i check whether a file is opened or not through java?

I don’t think you can do that. When you ask java to open the file it can read from it. If you don’t open the file in the code, the Java wont see the file at all. You might want to look at the swing libraries, they might have some file manipulation there. Also, make sure that the file you are opening in the directory where the java can read it. Meaning if it in the same place as the code or the total path of the file.

Tags:

If you enjoyed this post, make sure you subscribe to my RSS feed!

Comments

One Response to “Check whether a file is opened or not through java”

  1. gudu on July 10th, 2008 7:59 am

    Hi,

    If you are interested in these types of simple tips
    on doing things right with Java Technology

    I recommend a page at
    http://freesourceutilityhelp.googlepages.com/misc-java-tools.html

    Thanks.

Leave a Reply