Just noticed you're using rematch there - which is good since ListToArray will remove blank lines (not what we want).
However, you can simplify it - instead of the crlf variable you can do: <cfset lineArray = reMatch( '\r\n' , myFile ) /> And, once you're there, it's one extra character to do: <cfset lineArray = reMatch( '\r?\n' , myFile ) /> Which will work with files that don't have carriage returns. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327392 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4