Updating a .txt file
I don't know sqat about coldfusion, but it seems you could eliminate some duplication:

&lt;cfsavecontent variable="mytest"&gt; 
    [
    &lt;cfoutput query="getimeline"&gt; 
    {"title":"#name_time#","date":"#dateformat(date_time,"mmmm d, yyyy")#"}&lt;cfif (getimeline.CurrentRow NEQ getimeline.RecordCount)&gt;,&lt;/cfif&gt;    
    &lt;/cfoutput&gt; 
    ]
&lt;/cfsavecontent&gt; 

&lt;cffile action="write" file="C:test.txt"  output="#mytest#"&gt; 


If you don't mind that the comma will get placed on the next line,
then you can use this more readable writing style:

&lt;cfsavecontent variable="mytest"&gt; 
    [
    &lt;cfoutput query="getimeline"&gt; 
    {"title":"#name_time#","date":"#dateformat(date_time,"mmmm d, yyyy")#"}
    &lt;cfif (getimeline.CurrentRow NEQ getimeline.RecordCount)&gt;,&lt;/cfif&gt;    
    &lt;/cfoutput&gt; 
    ]
&lt;/cfsavecontent&gt; 

&lt;cffile action="write" file="C:test.txt"  output="#mytest#"&gt;