I have the name of a file like this: name1.csv
and I would like to extract two substrings of this string. One that stores the name1
in one variable and other that stores the extension, csv
, without the dot in another variable.
I have been searching if there is a function like indexOf
of Java that allows to do that kind of manipulation, but I have not found anything at all.
Any help?
See Question&Answers more detail:os