Sep 23

You can determine if a file exists using the File classes exists() method.


File file = new File(filename);
if (file.exists())
{
   // file exists
}
else
{
   // file does not exist
} 

written by objects \\ tags:


Leave a Reply

You must be logged in to post a comment.