On Sun, Apr 15, 2012 at 2:45 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote: > io.write(table.concat(lines,'\n')) This will do the Correct Thing, since io.stdout is opened in 'text' mode - i.e. does the \n -> \r\n translation automaticaly. steve d.