You can just address the elements right out of the array itself, instead of enumerating it like a collection, for example - if you were going to pass the fields to a SHELL command line (just simulated here):

Code:

break on

$filename = "t.csv"

if open(1,$filename) = 0

$line = readline(1)

while @error = 0

$c=1

$array = split($line,",")

?"cmd /c " + $array[0] + " /switch1:" + $array[1] + " /switch2:" + $array[2]

$line = readline(1)

loop

$= close(1)

endif



-Shawn