is the file path correct? inetpub\webroot ? sure it's not wwwroot?

if you are on a windows server use chr(10)&chr(13) as newline delimiter

why don't you loop directly over a file since you are on cf8?
why do you use IE as your dev browser? switch to FF+Firebug+Coldfire
immediately! :)

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Rick Faircloth wrote:
> What's wrong with this code?
>
> (I don't get an error message from CF, just an IE Error 500...)
>
> Thanks,
>
> Rick
>
> <cffile action="read"
> file="e:\inetpub\webroot\real_estate_data\hmls\data\2008_0719_idx_custom\active_photos.txt"
> variable="photos">
>
> <cfset photo_count=1>
>
> <cfloop index="photo" list="#photos#" delimiters="#chr(10)#">
>
>       <cfoutput>#index# - #photo_count#</cfoutput><br>
>       
>       <cfset photo_count = photo_count + 1>
>       
> </cfloop>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:309307
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