Hello,

I am wondering if it is possible to create an ASCII output in Cold Fusion.
Essentially, what I am wanting to accomplish is to create the column headers
on one row and then the following column data underneath (and essentially
looping through that data - that part I'm able to accomplish).

I've been attempting to accomplish this in various ways with little success.
I'm hoping someone out there might be able to lend some of their expertise
in this. Below should give you an idea of what I am wanting to do:

-----------------
<cfsilent><cfset lf="#chr(10)##chr(13)#"> <!-- <br> -->
<cfset tab="#chr(9)#">   <!-- 4 &nbsp; -->
<cfset ff="#chr(12)#">  
<cfheader name="content-disposition" value="Inline;
filename=testoutput.txt">
<cfcontent type="application/unknown" reset="Yes">

<!--- sample column header --->
<cfset x = "HEADER1,HEADER2,HEADER3,HEADER4,HEADER5">
<!--- column row --->
<cfset y = "text one/text two/text three/text four/text five/">

</cfsilent><Cfloop LIST="#x#" INDEX="i"
DELIMITERS=","><cfoutput>|#i#|#tab#</cfoutput></CFLOOP>
<Cfloop LIST="#y#" INDEX="j"
DELIMITERS="/"><cfoutput>:#j#:#tab#</cfoutput></CFLOOP>
-------------------------

As you can see, this works okay. However, the problem is that I cannot
combine the sets into one and then loop throught the data using multiple
delimiters. :/

If anyone has either gone through this before or can shed any light on this,
I'd certainly appreciate it!!

TIA!
____________________
Dave

_____________________________________________________________
http://PumpkinCutter.com
THE TRUTH IS HERE
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to