First of all my application is not a web application. My aim is reading html files and modify them.
So that I write this code:
string fileName =
You can load the HTML as XML using XElement etc, but ultimately if you are removing or inserting characters you will need to resize the file and relocate the characters.