You could use the Open(), ReadLine(), Split() and Close() functions like show below.

You could also use the ReadFile() UDF (it’s in the UDF section of this board) and the Split() function like shown in the second example.

 Code:
$rc = Open(1,"c:\somefile.csv", 2)
$line = ReadLine(1)

While NOT @ERROR AND Trim($line) <> ""
	$line = Split($line, ",")
	;Do some other stuff here
	$line = ReadLine(1)
Loop

$rc = Close(1)


 Code:
$file = ReadFile("c:\somefile.csv")

For Each $line in $file
	$line = Split($line, ",")
	;Do some other stuff here.
Next


UDF Library » ReadFile() - Read a file into an array
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.