Get File in string

Blitz3D Forums/Blitz3D Programming/Get File in string

xmlspy(Posted 2006) [#1]
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?


Kev(Posted 2006) [#2]
this help.

http://www.blitzbasic.com/codearcs/codearcs.php?code=648


xmlspy(Posted 2006) [#3]
I cam up with my own function... Thanks for that one... but I'll use mine.