private void writeROM() {
		DataOutputStream out = null;								// Used to write out the data to the ROM file

		try { out = new DataOutputStream(							// Create output stream used to write the ROM file
			new FileOutputStream(game)); }
		catch (FileNotFoundException e) { Error.fatalError(1); }	// 1 -- Cannot write to the designated file

		if (iNESWrite) {											// Only write the iNES header if instructed
			try { out.write(iNES, 0, iNES.length); }				// Write the iNES header to the ROM
			catch (IOException e) { Error.fatalError(1); }			// 1 -- Cannot write to the designated file
		}

		try { out.write(ROM, 0, ROM.length); }						// Write the ROM file
		catch (IOException e) { Error.fatalError(1); }				// 1 -- Cannot write to the designated file

		try { out.close(); }
		catch (IOException e) { Error.fatalError(1); }				// 1 -- Cannot write to the designated file
	}