Answers for "how to read files in directory c#"

C#
0

c# read file current directory

var path = Path.Combine(Directory.GetCurrentDirectory(), "\fileName.txt");
Posted by: Guest on September-21-2020
1

c# retrieve files in folder

string[] filePaths = Directory.GetFiles(@"c:MyDir", "*.bmp");
// returns:
// "c:MyDirmy-car.BMP"
Posted by: Guest on June-16-2020
1

c# retrieve files in folder

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

Code answers related to "how to read files in directory c#"

C# Answers by Framework

Browse Popular Code Answers by Language