Reading from CSV
Hi all, I am reading from a text file but some of the columns of csv may not have data. Is there a way to skip those?
I am getting an error ...
n function ListGetAt(list, index [, delimiters]), the value of index, 43, is not a valid as the first argument (this list has 42 elements). Valid indexes are in the range 1 through the number of elements in the list.
------------------------------------
<cffile action="read" file="#CurrDir#ResourceList.csv" variable="csvfile">
<cfset Validate = createobject("component", "rms_t.ValidateResource")>
<cfset msg = "">
<cfset counter = 1>
<cfloop index="index" list="#ListRest(csvfile)#" delimiters="#chr(10)##chr(13)#">
<cfif listgetAt('#index#',43) neq "" and listgetAt('#index#',43) eq 'Y'> </cfif>
