This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Checking DB file exists ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Checking DB file exists ?" Watch "Checking DB file exists ?" New topic

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.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Have you looked at what the 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.
Don't get me started about those stupid light bulbs.
subject: Checking DB file exists ?
Similar Threads
How can i show backend table data in CSV format
pubzzle of db-file-path expression?
GUI images
How to understand the .db file?