This example demonstrate how to check a file exits at a given path or not. The method isFile() of the File class check for its existence. As in the file path we see '\' (backslash) that is used to denote file separation but here in this example File.separator is used.
The output of this example is either true or false depends on the file existence at the path that is set in the program above.
Posted on: April 12, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles