However you do it, I'd look at a Java StringBuilder or StringBuffer, because
any string manipulation with CF over that many lines is going to blow up
with a Java out of memory exception since every concatenation or string
function call creates another string in memory.

On Tue, Apr 8, 2008 at 5:25 PM, Ian Skinner <[EMAIL PROTECTED]> wrote:

> I need to loop over a file with a few 10's of thousands of lines and
> replace the 7th and 8th characters{08} with two other characters {42} in
> each and every line.
>
> Is there some slick way to do this with regex or some other mechanism?
>
> Or do I just loop over the file, chop each line into several pieces and
> concatenate it back together with the proper values in the proper places?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302993
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to