static void Main(string[] args) { if (args.Length != 2) { DownloadText d = new DownloadText(); d.DownloadTextFile("http://www.httprecipes.com/1/3/text.php", "./text.html"); } else { DownloadText d = new DownloadText(); d.DownloadTextFile(args[0], args[1]); } }