How to replace single line in text withot saving the file?
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:
Code:
Dim lines() As String = System.IO.File.ReadAllLines(HTML01)
lines(7) = "editovan HTML"
WriteAllLines(HTML01, lines) 'without this line, just in RAM memory