To write use:
Dim file As String = "c:\test.txt" 'this must be the name and path of your file
Dim arq As New StreamReader(file)
Dim log_data As String ' this is the content you want to add
Dim cont As String = log_data + arq.ReadToEnd
arq.Close()
Dim arq2 As New StreamWriter("c:\test.txt")
arq2.WriteLine(cont)
arq2.Close()
Then you may read it from the start to the end. You just must to check it's performance.
0 comments:
Post a Comment