android 判断文件是否存在
//判断文件是否存在public boolean fileIsExists(String strFile){try{File f=new File(strFile);if(!f.exists()){
·
//判断文件是否存在
public boolean fileIsExists(String strFile)
{
try
{
File f=new File(strFile);
if(!f.exists())
{
return false;
}
}
catch (Exception e)
{
return false;
}
return true;
}
更多推荐



所有评论(0)