I am writing a program to batch rename files. I am trying to take the file name (which include folders) and remove everything before the last slash.
The problem is that LastIndexOf("\\") always returns -1, even if the string contains a "\".
And the Remove(0, index) doesn't ever remove any characters from the string.
If I were using std::strings, I would just use the findLastNotOf() and erase() functions.