Hi,

I noticed lately that a lot of people are using cfsavecontent instead of 
cffile, like this:

<cfsavecontent variable="content">
<cfinclude template="pageToRead.cfm">
</cfsavecontent>

vs.

<cffile action="read" file="c:\web\pageToRead.cfm" variable="content"/>

I would think cffile is more intuitive than cfsavecontent, and it is only one 
line to type.  So are there real benefits to use cfsavecontent over cffile?  I 
heard that cffile is slower than cfsavecontent.  Is that the only reason?

Johnny

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210100
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to