Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to get the filename only from the given path string in C#

Suppose we have a string with full path with filename and we want to extract only the filename from the given path, then we can use Path.GetFileName method to extract only the file name. Syntax: filename= Path.GetFileName(path); Where pat...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: