>>What would be the *best* way to delete the last line of a 8500 line file? Can it be done in one statement?
Well, this should do it: (not tested) <cfset foo = right(tempvar,100)> <CFSET lastLineLen = len(listLast(foo,chr(10)))> <CFSET tempvar = left(tempvar, len(tempvar) - lastLineLen)> Of course, you could do it in only one statement, but it won't be significantly much more efficient, and it would definitely be more difficult to read, I would'nt recommand it: <CFSET tempvar = left(tempvar, len(tempvar) -len(listLast(right(tempvar,100),chr(10))))> -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275002 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4