Well, I've tried loops and inner loops, etc, but nothing is giving
me the results I need.

I need to get rid of the column headers in the first line,
and then get rid of any linefeeds after the last piece of data.

This seemed fairly straightforward when I started...

Any more clues, anyone?

Rick


> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2008 5:50 PM
> To: CF-Talk
> Subject: RE: How to parse a text file...
> 
> Suggestions on how to replace the sequential newlines?
> I tried this...
> 
> <cffile       action          = "read"
>               file            =
> "e:\inetpub\webroot\real_estate_data\hmls\data\2008_0918_idx_custom\active_photos.txt"
>               variable        = "active_photos" />
> 
> <cfset active_photos = #replace("active_photos", 
> "#chr(10)&chr(13)##chr(10)&chr(13)#", "",
"All")#>
> 
> <cffile       action          = "write"
>               file            =
> "e:\inetpub\webroot\real_estate_data\hmls\data\2008_0918_idx_custom\active_photos_edited.txt"
>               output          = "#active_photos#" />
> 
> That just gave me a file with the text, "active_photos", and a return symbol 
> after it...
> 
> Thoughts?
> 
> Rick



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

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

Reply via email to