I found a nice little java class library called JavaCSV that handles all the
file writing and dropped my time from 68 seconds to 18 seconds.  That has
potential!

It basically handles the writing of delimiters and the proper csv
formatting.. so here's my code:

 <cfset var fileOutput = createObject("java","com.csvreader.CsvWriter")>
 <cfset fileOutput.init("#expandPath("..")#\drops\#filename#")>
  <cfloop query="resultSet">
   <!--- write record --->
   <cfloop from="1" to="#numFields#" index="i" step="1">
    <cfset fileOutput.write(
resultSet[fieldsArray[i]][resultSet.currentRow].toString() )>
   </cfloop>
   <!--- write end of record --->
   <cfset fileOutput.endRecord()>
  </cfloop>
  <cfset fileOutput.close()>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306602
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to