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
HiJackThis Analysis. Also "NoIE4StubProcessing"
problem while implementing pagination using display tag in MyEclipse 6.0 version
Excel File Help
Avoid pinned programs expanding in Windows 7 start menu
After moving mailbox to Exchange 2007 lost all Outlook rules
xhtml
Installing SSL certifcate on exchange 2010
How do I delete a file from a folder (uploads directory) when I delete its reference in the database?
Server 2008 R2 print server vs. XP clients
how can I enter a genuine product key in Windows 7