Hey, I'm working on a project that writes some HTML code to a file and then opens the file up. Now, there is a lot of HTML code and I don't really want to write it all into my C# program, because I may need to change the HTML in the future. All I really need is to pass a few variables across.
Is there a way that I can search through the text file, find a specific word, ignore the equal sign and add my own variable? For example:
jQuery:
<script>
var hello = "";
</script>
C#:
string hello = "Hello World";
-Scans the document
- Finds "var hello"
- Ignores the =
- Inserts hello.
Then when I open the webpage, it displays Hello?
Thanks for your help.