this one of my BIGGEST dislikes about CF. Whenever you read a file, it put
the entire file into a variable. There is no way to "open" and file and read
one line at a time. So if you have a 35 meg file and just want to read the
last line, CF would throw the entire 35 meg file into memory and that could
take a while on your server and bring it down. Hopefully with NEO there will
be away around this with JAVA.

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-----Original Message-----
From: Ed Gordon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 10:37 AM
To: CF-Talk
Subject: CFFILE reads whole file into 1 var?


CFFILE READs whole file into 1 var?
Is there a limit on the size of the contents of that file?
Is there an alternative way to read and process one record at a time in the
traditional fashion? I had to parse thru the file looking for CR's and
CFLOOP thru the logic. Seems strange, but if that's the way we
must do it, when in Poughkeepsie, do as the... nevermind... how do
YOU process each record in a flat file?

Thanks In Advance

Ed Gordon
Weekdays: Software Developer
Weekends: Fighting Crime as Chicken Man

FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to