I am workign on a Swing application where in I am reading Some Information from Two XML files in to my application. After making some modifiactions to the readin data i am writing that back to the Same File. now I need some help in attaining lock over those two files so that untill my application is running no other programs should be allowed to read from or write in to those files.
i.e. my application should attain lock on these Files When it Starts. And that lock Should be released when the application closes
Please Help me
Thanks in advance... [ November 01, 2006: Message edited by: Leela murthy ]