| Author |
Checking DB file exists ?
|
Tony Collins
Ranch Hand
Joined: Jul 03, 2003
Posts: 435
|
|
When updating the DB file, I would like a file Not Found Exception to be thrown if the DB file has been deleted or moved, is there any simple way to do this as I can't seem to find one. The JVM just creates a new file. cheers tony
|
 |
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
|
|
|
Have you looked at what the java.io.File class can do for you?
|
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
|
 |
 |
|
|
subject: Checking DB file exists ?
|
|
|