I make that but the end to cut $var and it work:
 Quote:
IF Open(3, "d:\testflag\flag.txt") = 0
$x = ReadLine(3)
WHILE @ERROR = 0
;redirige dans $var pour le decoupage apres les "="
$var = $var + $x
$x = ReadLine(3)
LOOP
Close (3)
ELSE
BEEP
? "Config file not opened, error code: [" + @ERROR + "]"
ENDIF
? "$var "
; ce qui suit ne fonctionne pas ....
$accueilori=split($var[1],'=')[1]
$newaccueil=split($var[1],'=')[3]



Edited by Crayven (2017-08-31 03:02 PM)
_________________________
It is at the foot of the wall that one sees best the wall