I need to open some HTML file, then replace exact line of text with another, and then WITHOUT SAVING THE FILE (WriteAllLines( HTML01, lines)) to display in WebBrowser. My code in private sub of replacing the line is next:
The file "HTML01" as already opened.
Thanks in advance!
Code:
Dim lines() As String = System.IO.File.ReadAllLines(HTML01)
lines(7) = "editovan HTML"
WriteAllLines(HTML01, lines) 'without this line, just in RAM memory
WebBrowser1.DocumentText = System.IO.File.ReadAllText(HTML01)
Thanks in advance!
Comment