using System;
using System.IO;
namespace GetAllFilesDemo {
class Program {
static void Main(string[] args) {
string[] files = Directory.GetFiles(@ "c:\tmp");
foreach(string file in files) {
Console.WriteLine(Path.GetFileName(file));
}
Console.ReadLine();
}
}
}