I have a string with path for file like this for example: C:\Users\Ekaterina\Desktop\3DTrajektorienplaner\Planungstool\Dromedary.stl
Now I need only the name of the file: "Dromedary.stl".
I have tried to find the last index of '\' and then delete everything before it, but I get an error, that '\' cannot be used.
I have also tried with remove function, but this path always has different length depending on the computer.
How can I solve this problem?