會因為parent的資料夾不存在而失敗,而這時直接使用mkdirs(). if(!file.exists()) { file.mkdirs(); try { file.createNewFile(); } catch (IOException e) { // TODO ...
確定! 回上一頁