i want to add some text at the begining of every line in a text file.
i'm only able to append text to the file
Imports System.IO
Module Module1
Sub Main()
' Append the first line of text to a new file.
Using writer As StreamWriter =
New StreamWriter("C:\append.txt", True)
writer.WriteLine("First line appended; rtp")
End Using
' Append the second line.
Using writer As StreamWriter =
New StreamWriter("C:\append.txt", True)
writer.WriteLine("Second line appended; 2")
End Using
End Sub
End Module