I bet this was already answered, as it seems like a pretty common problem.

My program recieves a file path with the name like so:

C:\Test1\Test2\Cool.res

How can I split it into an array like this:

0: C:\Test1\Test2
1: Cool

The delimnator is the last instance of the \