T
Tim Cowan
Hi
I have the following code to write an error file and it is supposed to open
the HTML file in a browser when an error occurs. It creates the file Ok but
doesn't open the new browser and doesn't give me any errors.
Tim
FileStream file = new FileStream(@"C:\errors\error.htm",
System.IO.FileMode.OpenOrCreate);
StreamWriter sw = new StreamWriter(file);
sw.Write(strHtml.ToString());
System.Diagnostics.Process.Start(@"C:\errors\error.htm");
sw.Close();
file.Close();
I have the following code to write an error file and it is supposed to open
the HTML file in a browser when an error occurs. It creates the file Ok but
doesn't open the new browser and doesn't give me any errors.
Tim
FileStream file = new FileStream(@"C:\errors\error.htm",
System.IO.FileMode.OpenOrCreate);
StreamWriter sw = new StreamWriter(file);
sw.Write(strHtml.ToString());
System.Diagnostics.Process.Start(@"C:\errors\error.htm");
sw.Close();
file.Close();