dodgerfan
asked on
Use substring in C# to get part of a file path
I need to get the folder name from a file path using substring in c#. The file path looks like this: O:\folder1\subfolder\text. docx. From this I want to pull out folder1 only. How can I do that using substring?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window