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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Prabhu RajaRank #861 · 2.6K reputationPosted Sep 5, 2011, 9:54 PM EDT
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
VulpesRank #55 · 29.2K reputationPosted Sep 5, 2011, 10:56 AM EDT
There's no error checking whatsoever, so I leave you to add that if you need it:
Console.WriteLine();
Sam HobbsRank #107 · 20.5K reputationPosted Sep 5, 2011, 11:13 AM EDT
Abolfazl155 reputationPosted Sep 6, 2011, 2:00 AM EDT