String
variable contains a file name, C:\Hello\AnotherFolder\The File Name.PDF
. How do I only get the file name The File Name.PDF
as a String?
I planned to split the string, but that is not the optimal solution.
String
variable contains a file name, C:\Hello\AnotherFolder\The File Name.PDF
. How do I only get the file name The File Name.PDF
as a String?
I planned to split the string, but that is not the optimal solution.