I am writing a new text file, after submitting the form.
I have a form field LineNo which I don't want to add in my new file
that form var can be only 6 or can be 1,4,6
how can I stop adding those line in my writenow var
the x is basically is containing the line #
cfif IsDefined
hey guys, I am doing a CFFILE and writing to a NEW file (not appending). i
am tyring to input information in text delimited from a query. how do I do
this though? i cannot put CFOUTPUT query=whatever inside the output.
help!
If you need to nest the output of a query within the CFOUTPUT tags,
simply use the CFLOOP function.
-Original Message-
From: Mookie Bear [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 3:27 PM
To: CF-Talk
Subject: Writing to text file
hey guys, I am doing a CFFILE
: Writing to text file
Date: Tue, 11 Dec 2001 15:31:00 -0500
If you need to nest the output of a query within the CFOUTPUT tags,
simply use the CFLOOP function.
-Original Message-
From: Mookie Bear [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 3:27 PM
To: CF-Talk
Subject
file=#request.excelfilepath#
output=#output#
/cfloop
Hope that helps.
Mark
-Original Message-
From: Mookie Bear [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 3:27 PM
To: CF-Talk
Subject: Writing to text file
hey guys, I am doing a CFFILE and writing to a NEW file
Subject: RE: Writing to text file
why can't I do this? i mean, I need to do this!! because i have to put
over 3,000 names How can I loop over a write CFFILE tag? because it
would keep making new files. why can't i put it all in one single thing? I
was also thinking putting all
why can't I do this? i mean, I need to do this!!
because i have to put over 3,000 names How can I
loop over a write CFFILE tag? because it would keep
making new files. why can't i put it all in one single
thing? I was also thinking putting all that info in one
variable, but
: RE: Writing to text file
why can't I do this? i mean, I need to do this!! because i have to
put
over 3,000 names How can I loop over a write CFFILE tag? because
it
would keep making new files. why can't i put it all in one single thing?
I
was also thinking putting all that info
Dave recommended using a single variable:
: cfset mystr =
: cfset CrLf = Chr(13) Chr(10)
: cfoutput query=hello
: cfset mystr = mystr fname , lname CrLf
: /cfoutput
: cffile action=write output=#mystr# ...
Actually, you could take this one step further and make it pretty
transparent:
I thought CFFILE had an APPEND type.
- BILL -
- Original Message -
From: BILLY CRAVENS [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 12:50 PM
Subject: Re: Writing to text file
add a line break using #chr(10)#:
output=CFOUTPUT query=hello#fname
10 matches
Mail list logo