C#, Code to read a file
String strHtmlMessage = String.Empty;
String strFilePath = HttpContext.Current.Server.MapPath("~/Mails/Confirmationmaill.htm");
using (StreamReader sr = new StreamReader(strFilePath))
{
strHtmlMessage = sr.ReadToEnd();
}
String strHtmlMessage = String.Empty;
String strFilePath = HttpContext.Current.Server.MapPath("~/Mails/Confirmationmaill.htm");
using (StreamReader sr = new StreamReader(strFilePath))
{
strHtmlMessage = sr.ReadToEnd();
}