string outputfile = string.Empty; if (args.Length == 0){ outputfile = "output.txt"; } else { outputfile = args[0]; }