Hi,
my name is Abolfazl and I'm beginner in C#.I want to get the name of files in a directory as a list.
for example, I choose a folder then get the list of files name.
any one can help me?
thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Prabhu RajaPosted Sep 6, 2011, 1:54 AM
i gave a source code. it will help you to select folder and show files.
-------------------------------------------------
if this reply helps you, then click "This is Correct answer" Check Box
AbolfazlPosted Sep 6, 2011, 6:00 AM
Sam HobbsPosted Sep 5, 2011, 3:13 PM
VulpesPosted Sep 5, 2011, 2:56 PM
There's no error checking whatsoever, so I leave you to add that if you need it:
Console.WriteLine();