public void generateHTML(){ String code = new String(); code += "<html><head><title>title</title></head><body>"; code += "schreibe hier deinen html-code rein!!!"; code += "</body></html>"; try { FileOutputStream fileOutHTML = new FileOutputStream(test.html"); fileOutHTML.write(code.getBytes()); fileOutHTML.close(); } catch (IOException ioex) { System.out.println("Fehler beim generieren der Datein: "); }}