Hi!
I want to delete file button click, but file is not deleting.
I tried to delete in main code & code is working.
file = new File(pathFileLocation); if (file.exists()){ System.out.println("file found"); if (file.delete()){ System.out.println("del"); }else{ System.out.println("not del"); } }
how can i delete file on button event ?
need help.
Thanks