Should be fairly easy in AS.
I think I would loop through the lines, counting/summing as I go.
Collect the 4K chunks in a list, and after that loop's done, then
loop through the chunks and write them out.
-boo
--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>