Oh, hell.

...

<cffile action="write" file="#ExpandPath('csv.htm')#" output="</table>">

:-)

On Thu, Oct 1, 2009 at 3:01 PM, Ian Skinner <h...@ilsweb.com> wrote:

>
> 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:326826
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