Well when you enter command line arguments they are stored in the args array..
static void Main(string[] args) //"someinput" would be stored in here.
{
string a=Console.ReadLine(); //this is wrong..Console.ReadLine() reads input from the user when enter is pressed
Console.WriteLine(a);
Console.ReadKey();
} static void Main(string[] args)
{
foreach (string arg in args)
{
Console.WriteLine(arg);
}
}
You would be better off using a foreach loop to print each argument to the console. The simple loop above will just cycle through each argument you enter. http://msdn.microsoft.com/en-us/library/ttw7t8t6(v=vs.80).aspx
take a look at that and it explains the foreach loop.