1 del >
Const ForReading = 1 Const ForWriting = 2 Fijar el objFSO = CreateObject (“Scripting.FileSystemObject”) Fijar objFile = objFSO.OpenTextFile (“C:\Scripts\123.txt”, ForReading) strText = objFile.ReadAll objFile.Close el strNewText = substituye (el strText, “043487835”, “04-3487835”) objFile determinado = objFSO.OpenTextFile (“C:\Scripts\123.txt”, ForWriting) strNewText de objFile.WriteLine el class= >I de objFile.Close
Const ForReading = 1 Const ForWriting = 2 Fijar el objFSO = CreateObject (“Scripting.FileSystemObject”) Fijar objFile = objFSO.OpenTextFile (“C:\Scripts\123.txt”, ForReading) strText = objFile.ReadAll objFile.Close el strNewText = substituye (el strText, “043487835”, “04-3487835”) el strNewText = substituye (el strText, “5551234”, “5551235”) objFile determinado = objFSO.OpenTextFile (“C:\Scripts\123.txt”, ForWriting) strNewText de objFile.WriteLine el class= >I de objFile.Close