How about:

<cfif NOT FileExists('D:/xy/text.txt')>

<cffile action="write"
        file="D:/xy/text.txt"
        output=""
        addnewline="no">
</cfif>

<cfoutput query="collectData">
<cffile action="append"
        file="D:/xy/text.txt"
        output="#begriff#"
        addnewline="Yes">
</cfoutput>

-----Original Message-----
From: CF-Talk [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 09, 2000 7:27 PM
To: [EMAIL PROTECTED]
Subject: cffile and cfloop ?


How can I populate the output section in cffile with a cfloop over a query ?
Has s.o. done this ?
This isn't working:

<cffile action="WRITE"
        file="D:/xy/text.txt"
        output="<cfloop
query=""CollectData"">#CollectData.begriff#</cfloop>"
        addnewline="Yes">

Thank you for any help.

Uwe

SD Solutions
Lange Zeile 27
85435 Erding
Fon: 08122/903791
Fax: 08122/903792
Mail: [EMAIL PROTECTED]
Web: www.sdsolutions.de


----------------------------------------------------------------------------
--
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.

Reply via email to