voila
Dim tableau() As String
Dim nouveautableau As New List(Of String)
Dim a As String
Dim b As String
tableau = Nothing
a = String.Empty
b = String.Empty
Try
tableau = System.IO.File.ReadAllLines("e:\bbb.txt")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
'après travaille avec tableau
For Each Str As String In tableau
If Str.Substring(0, 2) = "$F" Then
a = String.Empty
b = String.Empty
nouveautableau.Add(Str)
Else
If Str.Substring(0, 2) = "$D" Then
a = Str.Substring("$D".Length, Str.IndexOf(".") - "$D".Length)
b = Str.Substring(Str.IndexOf(".") + 1)
Else
nouveautableau.Add(Str.Replace(Str.Substring(Str.IndexOf(".") + 1), a & "." & b))
End If
End If
Next
End Sub
nouveautableau contient les données
veux tu les copier dans un fichier ?