How do i write an end of line character in coldfusion?
Posted on 2008-10-02
I am writing to a file, whereby each string entry in the file is delimeted by the end of the line. However i can't find the end of line character. Right now i'm doing this:
<CFLOOP ... for each string>
<CFFILE action="append" file="outFile" output="string" addNewLine="yes">
i.e. writing out each line at a time to make use of the "addNewLine" feature! Clearly not the best way..
.. and so ideally for performance i'd like to concatenate the string and write it out like in one go like this:
<CFFILE action="write" file="outFile" output="entire string">
How do i insert an end of line char in a coldfusion string?