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 commit changes of a Typed Dataset to database at once
install lexmark c912 on windows sbs 2003 box
How to determine hard disk activities
reverse ajax
Windows 2008 Server Domain isues
Anyone get Quickbooks errors in the Windows App log but not the program? Intuit says normal
Citrix \ IE - Published Web Site
SSAS 2008 MDX All Member Before Current Member
How to allow Internet access between untrusted zones on SSG-140
SQL Server function to call the excel function gammaln