Answers for "find files in directory c#"

C#
2

c# get files of type in directory

string[] files = System.IO.Directory.EnumerateFiles(directory, "*.*").ToArray();
Posted by: Guest on April-24-2021
0

Get files from directory c#

using System.IO;

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

Code answers related to "find files in directory c#"

C# Answers by Framework

Browse Popular Code Answers by Language