CTAC
Messages postés133Date d'inscriptionmardi 24 décembre 2002StatutMembreDernière intervention 8 juin 20125 8 févr. 2006 à 02:39
Bonjour,
En vbs
filespec = "C:\eleves"
Const ForReading = 1
Dim fso, theFile, retstring, i
Set fso = CreateObject("Scripting.FileSystemObject")
Set theFile = fso.OpenTextFile(filespec, ForReading, False)
i = 0
Do While theFile.AtEndOfStream <> True
i = i + 1
MsgBox "Ligne " & i & " : " & theFile.ReadLine
Loop
theFile.Close