Microsoft
Software
Hardware
Network
Question : How to generate an HTML file if I've got the HTML body?
I have a method to retrieve the html body content. How could I generate a complate HTML file from it? Like adding <body></body>, and <header></header> tags, etc. Suppose I know what header I'm going to add. Thanks.
Answer : How to generate an HTML file if I've got the HTML body?
PrintWriter out = new PrintWriter(new FileWriter("/temp/test.htm
l"));
out.println("<html><head>"
);
out.println("</head><body>
");
out.println(html);
out.println("</body></html
>");
out.close();
Random Solutions
How to Populate a ListBox Control with Values from an Access Database Table
Exchange 2007 OWA causes 2 audit failures on failed login attempt
to perform save after app deploy using jython scripts
need help with configuration for Nexus 5020 + 2148 FEX
Javascript register...
Lotus Notes 8.5
Exit Ctrl+Alt+F2
Cisco VPN Client 5.0.07.0290 on Windows 7 64 bit
Validate month and year fields based on current date
How do I get exchange emails to come from a different address?