Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to use split on a file name java

String textfile = "ReadMe.txt"; 
String filename = textfile.split(".")[0]; 
String extension = textfile.split(".")[1];
 
PREVIOUS NEXT
Tagged: #split #file #java
ADD COMMENT
Topic
Name
9+2 =