Getting Filename and Extension

How do I get the filename and extension from a file uploaded on the system. I see a method for getting the extension, so I didn't know if there was one for just getting the filename without it.
JoshDaleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fahad MukhtarDistinguished EngineerCommented:
look at these:
        System.IO.Path.GetExtension(UPLOADED_FILE_PATH)
        System.IO.Path.GetFileName(UPLOADED_FILE_PATH)
        System.IO.Path.GetFileNameWithoutExtension(UPLOADED_FILE_PATH) //this is what you need.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JoshDaleAuthor Commented:
Awsome, thanks... Sometimes it is hard to find the right class, because there are so many of them that do similar functions.
JoshDaleAuthor Commented:
lol, thanks for reminding me.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.