string filePath = Server.MapPath("Emailtesttemplate.html"); string writeText = StrContent; StreamWriter sw = File.AppendText(filePath); sw.Write(writeText); sw.Close(); Response.Write("<script>"); Response.Write("window.open('Emailtesttemplate.html','_blank')"); Response.Write("</script>");
System.IO.File.WriteAllText (@"D:\path.txt", contents);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)