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
Referencing merged cells using the "Indirect" function
Remove header from array created using Get-QADComputer cmdlet?
More Macro Short Questions
asp - The resource could not be found
Will there be a 13" Macbook with an iCore processor anytime soon? Safe to buy C2D?
Windows XP user can't browse by name, only by IP address
try catch
Jquery NoConflict Issue
Outlook 2007 does not remember password.
iPad Camera Connection Kit does not display .jpg images on iPad