I need to read in and parse text files with cr, lf, or cf/lf delimiting the
lines.  I could use CF's list processing except that I must be able to see
blank lines, which the following will skip over:

<cfset crlf = Chr(13) & Chr(10)>
<cffile action="read" file="#thefile#" variable="filestuff">
<cfloop index="theline" list="#filestuff#" delimiters="#crlf#">
  #theline#<br>
</cfloop>

Thanks,
Jim

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to