Answers for "c# get folder"

C#
2

get directory of file c#

using System.IO;

string file = "C:Documentsfile.txt";
Path.GetDirectoryName(file);
Posted by: Guest on December-03-2020
1

get folders in directory c#

string[] folders = System.IO.Directory.GetDirectories(@"C:My Sample Path","*", System.IO.SearchOption.AllDirectories);
Posted by: Guest on October-30-2020

C# Answers by Framework

Browse Popular Code Answers by Language