[sorry about that last one-- forgot to turn off formatting... --DB]
> Is there a way to get CFFILE ACTION="Read" to
> recognize tabs and carraige returns within a file as a
> delimiters? I haven't had any luck trying to parse
> out a tab delimited file because all the tabs and
> carraige returns collapse into white spaces. Please
> help someone.
I think I've heard other people say this before, too, but CF isn't
necessarily for every task. If this is a one-time script, it might be okay,
but if this is something to be used in a production environment, perhaps
something like Perl would be a faster solution...
If you are committed to doing this in CF, you can do stuff with Regular
Expressions (my favorite!) or with list functions. I would guess lists
would work best:
<!--- read file --->
<cffile action="read" file="my_file.txt" variable="big_file">
<cfoutput>
<!--- parse file and print in a table --->
<table border="1" align="center" cellpadding="3" cellspacing="1"
width="100%">
<cfloop list="#big_file#" index="sub_list" delimiters="#chr(13)##chr(10)#">
<tr>
<cfloop list="#sub_list#" index="item" delimiters="#chr(9)#">
<td>#item#</td>
</cfloop>
</tr>
</cfloop>
</table>
</cfoutput>
<!--- EOF --->
HTH-- Danny Boy
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.