well I was working from the top of my head.
== sometemplate.cfm ==
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>Untitled</title></head>
<body>
<cf__include2var VARname="xxx">
Sample Text
</cf__include2var>
<cffile
action="WRITE"
file="c:\www\test.txt"
output="#myVarName#"
addnewline="Yes">
== test the output for demonstration<br>
== Variable ==<br>
<cfoutput>#myVarName#</cfoutput>
<P>== include ==<br>
<cfinclude template="test.txt">
</body>
</html>
== end of file ==
== include2var.cfm
<CFIF ThisTag.ExecutionMode is 'start'>
<cfelse>
<cfset VarName = "caller.#attributes.varName#">
<cfset "#VarName#" = thistag.generatedcontent>
<cfset thistag.generatedcontent = "">
</cfif>
== end of file ==
This works for me. you have to play with it a little.
From: Magnus Wallin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Writing Inluded output in a file?
Date: Wed, 16 Aug 2000 18:02:42 +0200
The custom tag doesn't seem to be fully correct... :)
Where can I download the complete?
.Magnus
At 09:58 2000-08-16 -0500, you wrote:
>there was dbinclude custom tag in the exchange that included files into
>variables.
>
>also you could do.
><cf__include2var VARname=xxx>
><cfinclude template=whatever>
></cf__include2var>
>
><cffile write VARName>
>
>== _include2Var.cfm
><CFIF ThisTag.ExecutionMode is 'start'>
><cfelse>
>i'm not sure of the variable name syntax. I think it has been posted here.
>ANyone? please help.
><cfset caller.VARname = thistag.generatedcontent>
><cfset thistag.generatedcontent = "">
></cfif>
>== end of _include2VAR.cfm
>
>From: "Magnus Wallin" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Writing Inluded output in a file?
>Date: Wed, 16 Aug 2000 16:19:49 +0200
>
>I create the outdata from the include dynamicly. First using a query and
>then
>I have different Template-files that the data is displayed in.
>
>Now what I need to do is getting that data that the include file looks
like
>in the
>source code. In a file created by the <CFFILE>.
>
> Magnus
>
>
>
>----- Original Message -----
>From: "Dave Hannum" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, August 16, 2000 4:15 PM
>Subject: Re: Writing Inluded output in a file?
>
>
>Can you give a clearer description of what specifically you are attempting
>to do? Explain what you mean by "output of an includefile"
>
>Dave
>
>
>=================================
>"What we need is a list of specific unknown problems we will encounter"
>
>David Hannum
>Web Analyst/Programmer
>Ohio University
>[EMAIL PROTECTED]
>(740) 597-2524
>
>
>
>----- Original Message -----
>From: "Magnus Wallin" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, August 16, 2000 9:44 AM
>Subject: Writing Inluded output in a file?
>
>
>Does anyone have a clue how to write the output of an includefile
> to a .txt document?
>
>
> /Magnus
>
>
> _________________________________________________toga.com_
> Sveav�gen 17 � 111 57 Stockholm � Sweden � Mail [EMAIL PROTECTED]
> Telefon +46 8 508 99 931 � Fax +46 8 508 99 902
>
>
>
>
>
>----------------------------------------------------------------------------
>--
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
>
>----------------------------------------------------------------------------
>--
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or
send
>a message to [EMAIL PROTECTED] with 'unsubscribe' in the
>body.
>
>
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.