je veux lire le contenu d'un fichier txt mais mon code fonctionne sous xp mais plus sous w7
Code : Tout sélectionner
;Lecture du fichier AURORA
local $FichierAURORA
Local $file = FileOpen($ConfigFichier[2], 0)
; verifie si le fichier peut être lu
If $file = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf
; lit le fichier un caractère après l'autre
While 1
$FichierAURORA &= FileRead($file,1)
If @error = -1 Then ExitLoop
WEnd
FileClose($file)
MsgBox(0,"tt",$FichierAURORA)a+



