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
Include C++ header files in .Net Application
Crystal Reports 11 (migrating from 8.5) and VB6 using RDO resultset as datasource
adding a mac to sbs 2003 network
PHP 5.3.2 installation problem on Vista IIS7
PL/SQL Export table data to .csv file and save; launch Excel inside PL/SQL and load saved .csv file
SSRS - Relationship setup in Report model
SQL 2005 Select Query from multiple tables
Variable not defined error using VBA ExportAsFixedFormat Type:=xlTypePDF in excel 2003
Need a random list of 1000 geocoded locations in any one country
FTP not working on Windows Server 2008 IIS 7