Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionDim lstWords As New List(Of String) Sub VerifierMotInterdit() Dim filename As String = "C:\Users\Clément\Documents\ListeDeMots.txt" Using sr As New StreamReader(filename) While Not sr.EndOfStream Dim lineoftext As String = sr.ReadLine.Trim If Not lineoftext = "" Then lstWords.Add(lineoftext) End If End While End Using Dim found As Boolean = False For Each s As String In lstWords If TextBox1.Text.ToLower.Contains(s.ToLower) Then 'Action si le mot est trouvé End If Next End Sub
lstWords.AddRange(IO.File.ReadAllLines("monfichier.txt"))
IO.File.ReadAllLines("monfichier.txt").ToList