I don’t think it is necessary to define $Line as an array because I think the ‘Split()’ function does that for you every time it is used.

Code:

Dim $Line,$Element,$Output
$Output = ""
If Open(1,"p.csv",2) = 0
While @ERROR = 0
$Line = Split(ReadLine(1),",")
If $Line
For Each $Element in $Line
$Output = $Output + $Element
Next
? $Output
EndIf
Loop
EndIf

_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)