Bonjour,

Mon problème, je voudrais lire mon fichier txt dans listview1 mais j'arrive pas à afficher correctement les données dans listview1.

exemple txt :
SMNE01
New Super Mario Bros.

0 continue utilisé
047789F0 38A00000

1 ups ne compte pas
04060568 60000000

....etc
Mon code de lecture
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
Private CodeLine As New Regex("^[0-9A-Fa-f]{8} [0-9A-Fa-f]{8}$")
        ListView1.Items.Clear()
        Dim Cheats As New List(Of cheat)
        Dim txt As String() = File.ReadAllLines(filename)
        If (txt.Length = 6) Then Throw New FileLoadException("Erreur de lecture du fichier txt !")
        TextBox1.Text = txt(0)
        TextBox2.Text = txt(1)
        For i = 3 To txt.Count - 1
            Dim cheat As New cheat()
            Dim lines As String() = txt(i).Split(New String() {Environment.NewLine}, StringSplitOptions.None)
            Dim name As String = lines.First
            Dim code As New StringBuilder
            For Each line As String In lines.Skip(1)
                If Not CodeLine.IsMatch(line) Then
                    Continue For
                End If
                code.AppendLine(line)
            Next
            If name.Count > 0 Then
                cheat.names = name
            End If
            If code.Length > 0 Then
                cheat.codes = code.ToString
            End If
            Cheats.Add(cheat)
        Next
        For Each cheat As cheat In Cheats
            ListView1.Items.Add(New ListViewItem(New String() {cheat.names, cheat.codes}))
        Next
Pouvez-vous m'aider à résoudre le problème de lecture? merci d'avance