On 11/29/00, [EMAIL PROTECTED] penned:
>Hello,
> In my application, the user has to upload tabular data to the server
>I tried the CFFILE tag but then I get all the data only in 1 variable. How
>do I split the data so that I can read data from fields.
>Also, how do I read 1 row at a time ?
You can nest a loop inside a loop, using line breaks and tabs as the
delimiters.
<!--- Loop through each row --->
<cfloop index="datarow" list="#cffileoutput#" delimiters="#chr(10)#">
<!--- Loop through each field in the row --->
<cfloop index="datafield" list="#datarow#" delimiters="#chr(9)#">
#datafield#
</cfloop>
</cfloop>
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists