cs_simonfr
Messages postés9Date d'inscriptionlundi 2 mai 2005StatutMembreDernière intervention 8 avril 2006
-
14 juin 2005 à 15:21
econs
Messages postés4030Date d'inscriptionmardi 13 mai 2003StatutMembreDernière intervention23 décembre 2008
-
14 juin 2005 à 15:35
bonjour,
j'ai un script pour lire un fichier texte et l'afficher ligne par ligne
ca marche mais le seul probleme c'est qu'il lit une ligne sur 2 et je
comprend pas pourkoi.
voila mon code :
Const cForReading = 1
Set objFso = CreateObject("Scripting.FileSystemObject")
Set ts = objFso.OpenTextFile("toto.txt", cForReading)
Do While Not ts.AtEndOfStream
MsgBox (ts.ReadLine)
Loop
Set ts = nothing
Set objFso = nothing
si quelqu'un a une idee de comment avance d'une seule ligne a la fois