判断文件存在

Posted on 2015-06-26 09:32  小小蜗牛灬  阅读(163)  评论(0)    收藏  举报
	myRecVideoFile = new File(fileName);
	if(!myRecVideoFile.exists()){
		myRecVideoFile.getParentFile().mkdirs();
		myRecVideoFile.createNewFile();
	}

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3