On Wed, 25 Jan 2006 14:17:06 -0800, "JackO"
<Ja***@discussions.microsoft.com> wrote:
Does anyone have an example in VB.NET on how to create an HTML file.
This is in C#, but it should be reasonably similar to VB:
StreamWriter writer = new
StreamWriter(@"C:\myDirectory\myHTMLFile.htm", false);
writer.WriteLine("<html>");
writer.WriteLine("<head>");
writer.WriteLine(" <title>My HTML Page</title>");
writer.WriteLine("</head>");
writer.WriteLine("<body>");
writer.WriteLine(" <h1>Hello World!</h1>");
writer.WriteLine("</body>");
writer.WriteLine("</html>");
writer.Close();
HTH
rossum
--
The ultimate truth is that there is no ultimate truth