Mallikarjun
How to delete .xlsx file in java?
0 Answer(s)      3 years and 3 months ago
Posted in : Java Beginners

Hello Sir,

I am unable to delete .xlsx file using below code, What is wrong here?

if(myFile != null && myFile.exists()
   && myFile.canRead() && myFile.canWrite()
   && myFile.canExecute())
{
 myFile.delete();
}

Appreciate your help.

Thanks,
Mallikarjun

Advertisement
View Answers