Const ForReading = 1
Const ForWriting = 2
Reeks objFSO = CreateObject („Scripting.FileSystemObject“)
Vastgestelde objFile = objFSO.OpenTextFile („C:\Scripts\123.txt“, ForReading)
strText = objFile.ReadAll
objFile.Close
strNewText = vervang (strText, „043487835“, „04-3487835“)
strNewText = vervang (strText, „5551234“, „5551235“)
Plaats objFile = objFSO.OpenTextFile („C:\Scripts\123.txt“, ForWriting)
objFile.WriteLine strNewText
objFile.Close |