Reading Command-line Arguments using C#

Reading the command line arguments using C#.net
//foreach(string arg in args)
//{
// Console.WriteLine(arg);
//}

foreach (string arg in Environment.GetCommandLineArgs())
{
Console.WriteLine(arg);
}
Console.ReadLine();

Leave a Reply