Answers for "how to trim path in C#"

C#
0

how to trim path in C#

String dir = Path.GetDirectoryName(fullyQualifiedName);
string root = Directory.GetParent(dir).FullName;
Posted by: Guest on May-08-2020
0

how to trim path in C#

path=Y:\Test\Project\bin\Debug
ans = String.Join(@"\", path.Split('\\').Skip(3));
Posted by: Guest on May-08-2020

C# Answers by Framework

Browse Popular Code Answers by Language