I may not understand how that works, but I can't see anyway around not opening the whole file first. How would cold fusion or any other application be able to find the last line if it didn't open the whole file first.
I would like to see where you can pass various "delimiters" that would allow you to quickly see line by line or item by item whatever the case may be. But however you look at it, you would have to open the whole file to find parts of it ... Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder > 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/cf-talk@houseoffusion.com/ > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists