Using Substring in C# reverse -


and have filepath "\abc\abx\file.pdf". how can folder path i.e. "\abc\abx\" using substring other way.

thank in advance.

use system.io.path class

var dir = path.getdirectoryname(@"\abc\abx\file.pdf"); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -