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 can I detect a pixel color of an image in Flash using ActionScript 2?
Sharing camcorder footage
The SELECT permission was denied on the object 'sysdtspackages90', database 'msdb', schema 'dbo'.
look up table value with sql
Exchange Active Sync and self assigned certificates
Can not manage distribution list members through outlook 2003
WebService Client problem
web design vs dev
Flex 3 Datefield and DateChooser
Migrate SBS 2003 to Server 2008 R2