2013年10月24日 星期四

delete file

ex:
     
                File file = new File(context.getFilesDir(), "plan.txt");

try {
file.getCanonicalFile().delete();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

沒有留言:

張貼留言