Answers for "get all files from a directory c#"

C#
2

get all files in all subdirectories c#

Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)
Posted by: Guest on December-23-2020
0

Get files from directory c#

using System.IO;

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

Code answers related to "get all files from a directory c#"

C# Answers by Framework

Browse Popular Code Answers by Language