View Single Post
  #1 (permalink)  
Old 05-03-2007, 10:24 AM
Crane's Avatar   
Crane Crane is offline
Programming Expert
 
Join Date: Nov 2005
Posts: 399
Rep Power: 14
Crane is on a distinguished road
Default Getting File Name

I'm using a split function to get a the filename now but I think this will break if the depth of directories increase or decrease. Is there a way to get just the filename in a normal and safe manner?

I have

C:\test.txt

I want:

"test.txt"
Reply With Quote

Sponsored Links