Answers for "show files and folders c#"

C#
1

c# retrieve files in folder

using System.IO;

string[] filePaths = Directory.GetFiles(@"c:\MyDir\");
// returns:
// "c:\MyDir\my-car.BMP"
// "c:\MyDir\my-house.jpg"
Posted by: Guest on June-16-2020
0

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

Code answers related to "show files and folders c#"

C# Answers by Framework

Browse Popular Code Answers by Language