android 判断文件是否存在
来源:互联网 发布:俄罗斯域名注册商 编辑:程序博客网 时间:2024/06/05 21:03
//判断文件是否存在 public boolean fileIsExists(String strFile) { try { File f=new File(strFile); if(!f.exists()) { return false; } } catch (Exception e) { return false; } return true; }
阅读全文
来源:互联网 发布:俄罗斯域名注册商 编辑:程序博客网 时间:2024/06/05 21:03
//判断文件是否存在 public boolean fileIsExists(String strFile) { try { File f=new File(strFile); if(!f.exists()) { return false; } } catch (Exception e) { return false; } return true; }