I have a text file I want to replace the 2nd line with a different length of string. However, the result is the subsequent lines will be overwirte as the new line is longer than the old line.
How I can just replace exact the line I want, not touch the others?
My code is :
xFSO = CreateObject("Scripting.FileSystemObject")
*-- Loop until we get to the desired line
liLineNum=1
For i = 1 To liLineNum
=Fgets(liFile)
ENDFOR
liRc = Fputs(liFile, lsText)
Thanks for any idea!
How I can just replace exact the line I want, not touch the others?
My code is :
xFSO = CreateObject("Scripting.FileSystemObject")
*-- Loop until we get to the desired line
liLineNum=1
For i = 1 To liLineNum
=Fgets(liFile)
ENDFOR
liRc = Fputs(liFile, lsText)
Thanks for any idea!