Display Directory C# Sharp Exercise

Exercise

Display Directory

Objetive

Create a program that shows the files in the current folder.

Example Code

using System;
using System.IO;
class DisplayDirectory
{
    static void Main()
    {
        string[] files = Directory.GetFiles(".");

        foreach (string file in files)
        {
            Console.WriteLine(file);
        }
    }
}

More C# Sharp Exercises of Additional Libraries