Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners How to delete .xlsx file in java?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Mallikarjun
How to delete .xlsx file in java?
0 Answer(s)      2 years and 11 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

Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com