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
delete text from column B that exists in column A - Excel
is there a way to export GFI webmonitor Rules on isa 2006 for webgrade filter
Memory Leak in Poping Modal View Controller
Caml Query on Item versiion History
2 selects in a stored proc
the object is not accessible because is a friend
Office 2003 Clip Art not working
Server security analysis to determine patch level
C# ASP.NET code hanging for no reason...
ACT 2009! registration error, windows 7 (exception error popup)