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
Need a random list of 1000 geocoded locations in any one country
301 redirect non-www to www
Displaying GroupWise contacts in Exchange address book?
Outlook address book problem
publishing websites in TMG 2010
Multiple counts on 1 column
GFI 2010 Limits exchange 2003 incoming email 2 mb! ARGH!
How do I delete some lines in a text file?
ESXi compatible hardware
Capture Linkbutton click event in Master page from Content page