I am trying to delete a file: This is the code and I can't see anything wrong
System.out.println("users//"+"user"+i.getId());
File f=new File("users//"+"user"+i.getId());
System.out.println("Can READ: "+f.canRead());
System.out.println("Can WRITE: "+f.canWrite());
System.out.println("Can EXEC: "+f.canExecute());
System.out.println("Exists: "+f.exists());
System.out.println(f.delete());
Yes, I have the right to read,write,exec and the file exists. I don't have any exceptions