here is the example content of my file:
line1
line2
line3
line 4
line5
line6
i need only to replace "line 4" into "line4" and here the code to view this line by line:
Set myObj = CreateObject("Scripting.FileSystemObject")
Filestr = "c:\config2.ini"
Set myFile = myObj.OpenTextFile(Filestr)
Do Until myFile.AtEndOfstream
strLine = myFile.ReadLine
If InStr(strLine, "line 4") > 0 Then
strLine = Replace(strLine, "line 4", "line4")
End If
Loop
my problem is, Can this be possible to write the replacement on the readline? help pls.
sorry for my english and explanation...