<cffile action="read" file="myfile.csv" variable="myvariable">
<cfset myvariable = "header1,header2,header3" & chr(13) & chr(10) &
myvariable>
<cffile action="write" file="myfile.csv" output="#myvariable#">

On Tue, Jul 10, 2012 at 1:57 PM, Akos Fortagh <akos.fort...@yahoo.com>wrote:

>
> Unusual request I know, I have a CSV file with lots of rows but it has no
> headings, is there a way of inserting a new row at the top of the CSV file
> with some heading names?
> Any help would be greatly appreciated.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351867
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to