public static void main(String[] args)
	{
		if (args.length != 1)
		{
			System.out.println("No config file specified");
			System.out.println("usage: java -jar AutoReddit.jar <file name>");
			return;
		}

		ConfigParser.configFileName = args[0];

		try
		{
			String url = ConfigParser.findURL(ConfigParser.configFileName);
			double totalTime = ConfigParser.findTotalTime(ConfigParser.configFileName);
			double searchInterval = ConfigParser.findSearchInterval(ConfigParser.configFileName);
			int searchNum = ConfigParser.findNumPostAdd(ConfigParser.configFileName);

			System.out.println("Program begins!");
			System.out.println(Clock.printTime());
			System.out.println();

			new Downloader(url, totalTime, searchInterval, searchNum);

			System.out.print("Beginning HTML generation.... ");

			new HtmlGenerator(Downloader.fileOutputName);

			System.out.println("Done!");

			System.out.println();
			System.out.println(Clock.printTime());
			System.out.println("You may now view the posts at any time");
			System.out.println("Just open \"" + generatedHtmlName + " ("
			                   + Downloader.requestedURL.substring(24, Downloader.requestedURL.length() - 1)
			                   + ")"
			                   + fileType + "\" in any browser");
		}
		catch (FileNotFoundException e)
		{
			System.out.println("Cannot find file: " + ConfigParser.configFileName);
			System.exit(-1);
		}

	}