I need to separate the file name into an array of two strings.
The file name looks like this: IMG-20190604-WA0005.jpg
An array that I want:
[0] = "IMG-20190604-WA0005"
[1] = "jpg"
I got index position using LasIndexOf('.')
I need to separate the file name into an array of two strings.
The file name looks like this: IMG-20190604-WA0005.jpg
An array that I want:
[0] = "IMG-20190604-WA0005"
[1] = "jpg"
I got index position using LasIndexOf('.')
Copyright © 2021 Jogjafile Inc.
Don't use string methods but the available methods in
System.IO.Path:If you don't want the . at the beginning, remove it: