Actually, I think you could simplify Henry's example using another array and arrayAppend.
<cfset array=ArrayNew(1)> <cfloop index="line" list="#csvfile#" delimiters="#chr(10)##chr(13)#"> <cfset arrayAppend(array, listToArray(line))> </cfloop>
A scalar value of type coldfusion.runtime.Struct cannot be an array assigned to a two-dimensional ColdFusion.
FYI: The source code represents the types of mixing cycles. With <cfloop list="..">
value of index
is an element of a list of type "a, b" (and not a line number). Obviously, "a, b" is not an expected numeric index, hence an error.
<cfset array['a,b'][1]=#listgetAt('#index#',1, ',')#> <cfset array['a,b'][2]=#listgetAt('#index#',2, ',')#> <cfset array['c,d'][1]=#listgetAt('#index#',1, ',')#> ....
Having nothing to do with your mistake, none of these signs are required. The code will work anyway, but writing more cleanly:
<cfset array[lineNum][1]= listgetAt( index, 1, ',')>
instead
<cfset array['#lineNum#'][1]=