Parsing CSV with coldfusion
<p>I want to create a new function which will take CSV and parse data from it and then write it to database.
So far I managed to get this:</p>

<pre><code>&lt;cfhttp method="get" url="C:\ColdFusion11\path\test.csv" name="csvData"&gt; 
&lt;cfoutput&gt;#isQuery(csvData)#&lt;/cfoutput&gt;

&lt;cfloop query="csvdata" &gt;
    &lt;p&gt;
&lt;cfloop list="#csvdata.columnlist#" index="i"&gt;
    &lt;cfoutput&gt;
            #csvdata['#i#'][currentRow]# - 
    &lt;/cfoutput&gt;    
&lt;/cfloop&gt;
&lt;/p&gt;
&lt;/cfloop&gt;
</code></pre>

<p>And I get this error:
Variable CSVDATA is undefined
<br>
I don't know why do I get this error, because my var is defined in cfhttp(Or I did something wrong there?)</p>