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
Why cant I use the native mail client on the new HTC Evo to syn with ActiveSync to our OWA site?
email on ipod touch
Copy "Protect Sheet" setttings to all tabs in a workbook
Group Policy - Only allow intranet web access to production desktops
Crystal Reports 11 (migrating from 8.5) and VB6 using RDO resultset as datasource
Server healtness
Include C++ header files in .Net Application
MAC Os 10.4 Startup problem.
Can You Remote Access PowerShell?
IIS 7 leaking private ip via https