I have had this problem also working with big files. So if the non 
script version was written this way, would it eliminate the whitespace problem?

<cfloop condition="isDefined('myVal')"><cfset myVal = 
brReader.readLine()><cfif NOT 
isDefined("myVal")><cfbreak><cfelse><!--- do my work here ---></cfif></cfloop>

Thanks,
Tom Thomas


At 11:39 AM 10/30/2008, you wrote:

>Interesting ... although it can be explained. :)
>
>CFSCRIPT will be creating no whitespace, where as the first version will
>be creating lots of whitespace (carriage returns/spaces) as it iterates
>over the loop.  So over time this will use up the heap space.
>
>So yes, it is as expected.
>
>JLeone wrote:
> > Riddle me this...
>
>
>--
>Alan Williamson
>   Registrationless email/sms reminders:  http://yourli.st/
>   blog:  http://alan.blog-city.com/
>
>


--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official blog @ http://blog.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to