How to download a file from cloud and to get the path in C#
I want to download a file from cloud and i want to get the path of that downloaded file through C# programming.
I'm able to fetch file by passing the path through a variable. But I need to fetch the file without passing file path as variable.could anyone help me on this.
var folderPath = "C:\\Users\\T430\\source\\repos\\download\\download\\bin\\Debug";
foreach (string file in Directory.EnumerateFiles(folderPath, "sample*.xml"))
{
string contents = File.ReadAllText(file);
Console.WriteLine(contents);
Console.ReadLine();
}