Get File in string

Blitz3D Forums/Blitz3D Programming/Get File in string

I want to obtain the file's name and not the entire DIR.
myfile$ = "C:\folder\myfile.txt")

I want to get "myfile.txt" and not the "C:\folder\" part. How would I do this? It would be from the last "\" right?