The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
June 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


How to extract text from whole path

Posted by Khurram on August 19, 2000 at 2:16 PM

Hi Sir,
I have a problem.Sir I have a string
1) c:/java/sound/abc.gif
2) c:/java/lums/docm/maham.tif

Sir I only want the last words , such as from

1)"abc.gif" i want only this text from whole path

and from
2) maham.tif

how can i get them
can u plz provide or give me a code that can do such things.
I'll wait for ur reply
ur brother,


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us