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
code for menu
How to block USB Disks using Windows 2008 R2 Domain Controller Group Policy
VMware Workstation 7.1 Won't Install
How to create own SMTP Server on VPS?
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?
VMware ESXi4 Backup
How can i add column name in list generic?
How to use Outlook VBA to select messages in an Outlook folder and run VBA macro
net share system error 5 acces denied
Utilizing array gleamed from GetRows method in Access VBA