TC> I wish I did not have to assume that LF is the system line delimiter. Use the standard utility toJ . That converts the host system's line delimeter sequence to J's line delimiter, which indeed is LF . Its obverse is toHOST (which you can use to write files). require 'strings' ;: each LF cut toJ DATA_GOES_HERE -Dan