Question : detecting file extension or type

Need to add an if statement to run code if something is a zip file vs a csv file.  HOw would I check for that?

Answer : detecting file extension or type

What about
1:
fileName.toLowerCase().endsWith(".csv");
Random Solutions  
 
programming4us programming4us