private void generateHtml()
	{
		File f = new File(generatedHtmlName + " ("
		                  + Downloader.requestedURL.substring(24, Downloader.requestedURL.length() - 1)
		                  + ")"
		                  + fileType);
		if (!f.exists())
		{
			try
			{
				f.createNewFile();
			}
			catch (IOException e)
			{
				System.out.println("Could not create: \"" + generatedHtmlName + " ("
				                   + Downloader.requestedURL.substring(24, Downloader.requestedURL.length() - 1)
				                   + ")"
				                   + fileType + "\"");
				System.exit(-1);
			}
		}
		else
		{
			File old = new File("(old) " + generatedHtmlName + " ("
			                    + Downloader.requestedURL.substring(24, Downloader.requestedURL.length() - 1)
			                    + ")"
			                    + fileType);
			f.renameTo(old);
		}

		PrintWriter out = null;
		try
		{
			out = new PrintWriter(generatedHtmlName + " ("
			                      + Downloader.requestedURL.substring(24, Downloader.requestedURL.length() - 1)
			                      + ")"
			                      + fileType);
		}
		catch (FileNotFoundException e) {}

		generateHtml_start(out);

		for (int i = 0; i < sortedPosts.size(); i++)
		{
			generateHtml_post(out, sortedPosts.get(i));
		}

		generateHtml_end(out);

		out.close();
	}