Answers for "check for a file in folder 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
1

c# retrieve files in folder

string[] filePaths = Directory.GetFiles(@"c:\MyDir\", "*.bmp",
                                         SearchOption.AllDirectories);
// returns:
// "c:\MyDir\my-car.BMP"
// "c:\MyDir\Friends\james.BMP"
Posted by: Guest on June-16-2020

Code answers related to "check for a file in folder c#"

C# Answers by Framework

Browse Popular Code Answers by Language