How do i read a command line? [duplicate]

The entry point to a console app is main, which takes an array of strings, something like

class Program
{
    static void Main(string[] args)
    {
    }
}

If you call your program with some arguments, the first will be the exe name, and the rest your strings.

Leave a Comment