John M Bliss wrote: > <cffile action="read" file="#ExpandPath('csv.csv')#" variable="thiscsv"> > <cffile action="write" file="#ExpandPath('csv.htm')#" output="<table>" > addnewline="true"> > > <cfloop list="#thiscsv#" index="thisline" delimiters="#Chr(10)#"> > > <cffile action="append" file="#ExpandPath('csv.htm')#" output="<tr>" > addnewline="true"> > > <cfloop list="#thisline#" index="thiscell"> > > <cffile action="append" file="#ExpandPath('csv.htm')#" > output="<td>#thiscell#</td>" addnewline="true"> > > </cfloop> > > <cffile action="append" file="#ExpandPath('csv.htm')#" output="</tr>" > addnewline="true"> > > </cfloop>
Bad news John, you failed to write a closing tag for the table, your HTML file is not going to pass validation. ;-) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326825 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4