Answers for "how to read file from a directory in c#"

C#
0

c# read file current directory

var path = Path.Combine(Directory.GetCurrentDirectory(), "\\fileName.txt");
Posted by: Guest on September-21-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 "how to read file from a directory in c#"

C# Answers by Framework

Browse Popular Code Answers by Language