I am trying to edit a textfile:
Open the textfile, find the item I need and then replace the new item(line) to the file.
Until now I have got this:
I hope someone can help me,
Regards, Kars
Open the textfile, find the item I need and then replace the new item(line) to the file.
Until now I have got this:
Code:
Open "C:\TextFile.txt" For Input As #1
While Not EOF(1)
Line Input #1, strData
'Found the line to replace
Wend
Close #1
Regards, Kars