using System; using System.IO; public class App { static void Main(string[] args) { string[] files = Directory.GetFiles("/bin"); foreach(string s in files){ Console.WriteLine(Path.GetFileName(s)); } } }