PROBLEME OUVRIR ET LIGNE PAR LIGNE

Cavaettoi - 6 mars 2001 à 16:11
 Cavaettoi - 6 mars 2001 à 17:17
Salut a tous,
je souhaite ouvrir un fichier et afficher une msgbox avec chaque ligne du fichier
jai essayer avec la commande

open "fichier.txt" for binary as #1

etc.. mais ca ne fonctionne pas

si qq1 pouvait m'aider

merci davance

2 réponses

Dim strLigne As String
Open "c:oot.ini" For Input As #1
Do While Not EOF(1)
Line Input #1, strLigne
MsgBox strLigne
Loop
Close #1
0
Merci
0
Rejoignez-nous