Monday, 28 December 2015
Friday, 25 December 2015
Sunday, 20 December 2015
Wednesday, 16 December 2015
Monday, 14 December 2015
Saturday, 12 December 2015
Wednesday, 25 November 2015
Commandline Program in C#
using System;
class CommandLine
{
public static void Main(String []args)
{
String str="null";
int num=0;
if(args.Length!=0)
{
try
{
str=args[0];
num=int.Parse(args[1]);
Console.WriteLine("Arguments are : ");
}
catch(Exception e)
{
Console.WriteLine("Invalid Arguments : Error");
}
}
else
{
Console.WriteLine("No arguments passed : ");
}
Console.WriteLine(str);
Console.WriteLine(num);
}
}
Subscribe to:
Posts (Atom)