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

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -