let's say my file contains 3 main parts.  a person's name, age, and sex.
the key to your problem, or to the solution, whichever, AHH!!, is to read
the text file as a list, and pull out whichever part you want.  so
therefore, you separate those parts with a delimiter, preferably a character
that doesn't get used often.  I prefer ~  
so, your text file should look something like Mr. Pooh Bear~19~Male
When u do your CFFILE Read, and u want only the name, to get your desired
"part" would be like 
#ListGetAt(outputvar, 1)#

hope u knock it out!






-----Original Message-----
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 2:46 PM
To: CF-Talk
Subject: cffile


I can use cffile to import a text document, but I'd like to only import one
part of this file, how can I do this?

thanks,
Pete
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to