Create a file

File f = new File("/sdcard", "test.txt");
try {
 f.createNewFile();
} catch (IOException e) {
 e.printStackTrace();
}

你可能感兴趣的:(File)