A voir également:
- [[Visual Basic]] .txt > afficher son contenu.
- Visual basic - Télécharger - Langages
- Visual basic editor - Télécharger - Langages
- Visual petanque - Télécharger - Sport
- Microsoft 365 basic - Accueil - Microsoft Office
- Visual c++ 2019 - Guide
1 réponse
Bonjour,
Dim TextLine as string
Open "texte.txt" For Input As #f ' Ouvre le fichier.
Do While Not EOF(f) ' Effectue la boucle jusqu'à la fin du fichier.
Line Input #f, TextLine 'Met la ligne dans la variable.
Textbox.text = Textbox.text & TextLine 'Ajoute la ligne dans le textbox
Loop
Close #f ' Ferme le fichier.
End Sub