1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Dim oFSO As Scripting.FileSystemObject
Dim oFl As Scripting.File
Dim oflc As Scripting.File
Dim oTxt As Scripting.TextStream
Console.WriteLine(" By Tybbow, Version 1.0")
Console.WriteLine("")
Console.WriteLine("")
Console.WriteLine("")
Console.WriteLine("Démarrage du programme")
Console.WriteLine("Mise en place du système de fusion")
oFSO = New Scripting.FileSystemObject
oflc = oFSO.CreateTextFile("/QUALITE.xml")
Dim oTxtr = oFSO.GetFile("/QUALITE.xml")
oTxt = oTxtr.OpenAsTextStream(Scripting.IOMode.ForWriting)
oTxt.WriteLine("<?xml version=" & Chr(34) & "1.0" & Chr(34) & "standalone=" & Chr(34) & "yes" & Chr(34) & "?>")
oTxt.WriteLine("<TRANSPORTER>")
oFl = oFSO.GetFile("fichier/ABONNES.txt")
oTxt = oFl.OpenAsTextStream(Scripting.IOMode.ForReading)
oTxt.SkipLine()
oTxt.SkipLine()
With oTxt
While Not .AtEndOfStream
MsgBox(oTxt)
Dim otxts As String = oTxt.ReadAll
If InStr(1, otxts, "ITEM", 1) <> 0 Then
Replace(otxts, "ITEM", "ITEM24")
System.IO.File.AppendAllText("/QUALITE.xml", otxts)
End If
End While
End With |
Partager