Read a HTML file into a string variable in memory
Use System.IO.File.ReadAllText(fileName)
Use File.ReadAllText passing file location as an argument.
However, if your real goal is to parse html then I would recommend using Html Agility Pack.
Use System.IO.File.ReadAllText(fileName)
Use File.ReadAllText passing file location as an argument.
However, if your real goal is to parse html then I would recommend using Html Agility Pack.