Archived Forum Post

Index of archived forum posts

Question:

Most elegant way to parse filename from path using ckString?

Dec 10 '12 at 09:12

I feel like there's got to be a very elegant way to parse out the filename from a path string..

/path/to/example.exe

I'd like that to be /path/to

Now, I know there's methods in the CkString to tokenize, split strings, etc, which I'm more than happy to do, but I expect I'm not alone in doing this, anyone else have a more elegant solution than splitting and walking the split strings?

Thanks!

hz