Hi,
Im trying to add a line on offset of 3 lines.
Hope somebody can put me in the right direction.
thanks in advance,
Im trying to add a line on offset of 3 lines.
Hope somebody can put me in the right direction.
thanks in advance,
VB.NET:
Dim myStreamReaderL1 As System.IO.StreamReader
Dim myStream As System.IO.StreamWriter
Dim rplce As String = "Product end" & vbCrLf & "Product"
Dim myStr As String
myStreamReaderL1 = System.IO.File.OpenText(RootFolder.Text & "\" & "Temp.txt")
myStr = myStreamReaderL1.ReadToEnd()
myStreamReaderL1.Close()
myStreamReaderL1.Dispose()
myStr = myStr.Replace("Product", rplce)
( skip 3 lines and add: "My new Line" )
myStream = System.IO.File.CreateText(RootFolder.Text & "\" & "Temp.txt")
myStream.WriteLine(myStr)
myStream.Close()