public static void main(String[] args) {
		if (args.length < 2) {
			System.out.println("Usage : Dissasembler <input file name> <output file name>");
			System.out.println("Output is an html file");
			System.exit(0);
		}
		else {
			String inputFileName = args[0];
			String outputFileName = args[1];
			try {
				FileWriter fw = new FileWriter(outputFileName);
				BufferedWriter output = new BufferedWriter(fw);
				ArrayList<SimpleEntry<String, String>> entryList = InstructionReader.readFile(inputFileName);
				printHtmlHeader(output);
				for (SimpleEntry<String,String> entry : entryList) {
					Instruction ins = InstructionFactory.createInstruction((String)entry.getKey());
					output.write("<tr>\n<td>");
					output.write((String)entry.getValue());
					output.write("</td><td>");
					ins.printFormat(output);
					output.write("</td><td>");
					ins.printMnemonic(output);
					output.write("</td><td>");
					ins.printDecomposedDecimal(output);
					output.write("</td><td>");
					ins.printDecomposedHexa(output);
					output.write("</td>\n</tr>\n");
				}
				printHtmlFooter(output);
				output.close();
			} 
			catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}