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

Amon Forstmann amon at ...715...
Sat Nov 12 12:26:39 CET 2005


Thank you it works :) 




Am Samstag, den 12.11.2005, 05:23 +0100 schrieb PV:
> 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
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list