Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get file extension java

import org.apache.commons.io.FilenameUtils;

String ext1 = FilenameUtils.getExtension("/path/to/file/foo.txt"); // returns "txt"
String ext2 = FilenameUtils.getExtension("bar.exe"); // returns "exe"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #extension #java
ADD COMMENT
Topic
Name
4+7 =