illustrates how to read command-line arguments : Command Line : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Command Line »

 

illustrates how to read command-line arguments








    

/*
Mastering Visual C# .NET
by Jason Price, Mike Gunderloy

Publisher: Sybex;
ISBN: 0782129110
*/

/*
  Example10_4.cs illustrates how to read
  command-line arguments
*/

using System;

public class Example10_4
{

  public static void Main(string[] arguments)
  {

    for (int counter = 0; counter < arguments.Length; counter++)
    {
      Console.WriteLine("arguments[" + counter + "] = " +
        arguments[counter]);
    }

  }

}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Command Line