Have option for CRLF line end with write file
This would avoid the need for a Javascriptlet
var cret = "\r"
and adding %cret at the end of write file data when append newline is ticked, or
var crlf = "\r\n"
and %crlf at the end of write file data.