Jason,

Each time you read in the file you could process it and create session
level arrays or structures that suite your needs.  This way you are
doing the text processing once, and reading arrays / structures all the
other times ..this should help with processing speed.

-eric
------------------------------------------------
Common sense is genius dressed in its working clothes.
 -- Ralph Waldo Emerson

Eric Barr
Zeff Design
(p)  212.714.6390 
(f)   212.580.7181


-----Original Message-----
From: Jason Egan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 1:06 PM
To: CF-Talk
Subject: reading lists over and over


I have a text file that I have to read in and populate drop downs with.
It
is essentially an invoice, so each time a line is added I have to read
through the file again and fill in drop downs, match data from the file
to
that entered etc.

Soooo... what I have done so far is save the file into a session
variable so
that it doesn't have to be read from the drive each time, that has saved
some time, but parsing through the file each time is killing me.

I don't have access to a db to sore the data... hence a text file.  Any
suggestions on a better way to store the data/file so that it will be
faster
to parse through?

It is in a format like:

id, info, name, company
id, info, name, company
id, info, name, company
id, info, name, company


so I get the line, use the delimited list ... maybe an array?
Anything???

Jason
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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