I use this code in this page, for reading data line by line. Now how I can edit text file, line by line?
(VB6) Reading text files line by line looking for specific words
If InStr(1, lines(i), "sample text", vbTextCompare) Then
lines (i)= "new text"
I used this code, but nothing changed.