TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dhanu shree
NA
72
7.3k
How to download a file from cloud and to get the path in C#
Mar 17 2018 7:21 AM
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();
}
Reply
Answers (
4
)
how to use jquery datatabe when you have record more than
Email Verification using Asp.Net