Cutting up an std::string
Okay, so I've ran into a problem, it is great that the .ms3d file gives me a file path for another file I need to draw the ms3d file (a texture)..
But it turns out, that that texture filename is relative to the location it was origionally created!!!
So no matter what I do, when I load the file it spits out an arbitrary file path that I don't have, but there is still good news...
It does have the final file name in it
asdf.bmp or whatever it may be...
This is good, that means if I can somehow cut the filename down to the last /asdf.bmp part, and then add my own filepath/textures part to it, I can successfully load any file out of any path I choose...
Is there any way to parse an std::string like this?
If so can someone give me a nudge in the right direction?