File path = new File("/sdcard/okc"); File file = new File("/sdcard/okc/save.txt"); if (!path.exists()){ path.mkdirs(); } if (!file.exists()){ file.createNewFile(); }
File path = new File("/sdcard/okc"); File file = new File("/sdcard/okc/save.txt"); if (!path.exists()){ path.mkdirs(); } if (!file.exists()){ file.createNewFile(); }
转载于:https://www.cnblogs.com/tiejiangweigaibianercunzai/p/3901822.html