[Gambas-user] "Extracting" the filename from a full-path string

PV oreip at ...1...
Sat Nov 12 05:23:14 CET 2005


On 12/11/2005 00:18, Amon Forstmann wrote:
> Hi there,
> 
> can somebody tell me a way to extract the filenames from the following
> strings?
> 
> "/apps/docs/help.txt" or "/usr/src/linux/bla.txt"
> 
> I need the last field of these strings. The delimiter is always "/"

filename = File.Name("/usr/src/linux/bla.txt")


Ciao,
Piero




More information about the User mailing list