SyntaxFix
Write A Post
Hire A Developer
Questions
var htmlText = System.IO.File.ReadAllText(@"C:/filename.html");
And if file in at application root, user below
var htmlText = System.IO.File.ReadAllText(HttpContext.Current.Server.MapPath(@"~/filename.html"));