Quote:

How do you need to use these variables. here's a little snippet that will store each line of the text file (after the '=') into an array.Code:

dim $varArray
$ = open(1,"yourfile")
$curLine = readline(1)
while @error = 0
redim preserve $varArray[ubound($varArray)+1]
$val = split($curLine,'=')[1]
$varArray[ubound($varArray)] = $val
$curLine = readline(1)
loop
$ = close(1)

for each $var in $varArray
? $var
next





Thanks, MacieP, you've jump-started my brain.

I need to get the variable names, in addition to the values. The names are static; the values are dynamic. I suppose I can do this by splitting the READLINE to the left and the right of the '='. I'm going to go experiment with that right now. Then there's the problem that one of the values is an LDAP address, which contains several '=' signs.