Is there an easy way to parse a path to get to just the filename and extention?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i can do this using split as well as other ways, but i would think that there is an easier way to get to just the filename.ext from a rather long path. it's been a while since i pounded code but i remember at one point, there being functions for such a purpose. i looked through the .net stuff and haven't found anything close...but then again i overlook stuff a lot....hey, after all, i am a male. :-

thanks to all who reply...i appreciate it

-
gh
 
* =?Utf-8?B?R3JlZW5Ib3JuU2hhYmF6?= said:
i can do this using split as well as other ways, but i would think
that there is an easier way to get to just the filename.ext from a
rather long path. it's been a while since i pounded code but i remember
at one point, there being functions for such a purpose. i looked through
the .net stuff and haven't found anything close...but then again i
overlook stuff a lot....

'System.IO.Path.GetFileName'.
 
Back
Top