Returns True / False if file exists
public static boolean FileExists(String FileName)
{
/*
* (c) John Minkjan
* 101Java.blogspot.com
* 2011 till 2031
*/
boolean blnFExists = false;
File f = new File(FileName);
if (f.exists())
{
blnFExists = true;
}
else
{
blnFExists = false;
};
return blnFExists;
};
Till Next Time
No comments:
Post a Comment