这是代码
File f= new File("/home/my.xml");
System.out.println("创建新文件");
if(!f.exists()){
try {
f.createNewFile();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
System.out.println("新文件创建成功");
}
}
这是报错信息
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)