+ 1

How can i delete a file ?

Why i can not delete a file by using delete() method in file class?

25th Dec 2016, 2:49 PM
Hussein Saad
Hussein Saad - avatar
3 Réponses
+ 4
You should check this out: http://docs.oracle.com/javase/tutorial/essential/io/delete.html I can't know what's your exact problem, but maybe this can help you.
25th Dec 2016, 2:55 PM
Goio
0
thanks
6th Jan 2017, 3:08 PM
Hussein Saad
Hussein Saad - avatar
0
fileToDelete=new File("location"); fileToDelete.delete();
27th Jan 2017, 6:40 AM
AKASH JHA
AKASH JHA - avatar