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
Passing a structure from VBA in Excel to a C DLL
How to check and clear Attention LED
how do I reorganise a text file in powershell ?
Please suggest a suitable router
Citrix presentation Svr 4.5 - Data collector election
Why are Win 7 clients dropping connections, event 4634, laggy network, freezing clients
Exchnage database restoration
How to exclude interal emails from Junk Mail filter
Regular Expression needed to parse a string of multiple colons and extract an element-revised
Win32_ScheduledJob syntax question