Hi Tac,

>I need to manipulate the .mail file, and am having a Cold Fusion problem
>related to line breaks.  I want to make a simple replacement -- ....
>
>My code is
>
><CFFILE ACTION=READ ... VARIABLE="F">
><CFSET F = Replace(F,"To: [EMAIL PROTECTED]", "To: TAC")>
><CFFILE ACTION="WRITE" ...>
>
>The original and output different in their end of line treatment -- CRLF v.
>CR, I think.  Would "readbinary" work?  Is there another approach?

What you need is to add the parameter ADDNEWLINE="No" to the cffile:

<CFFILE ACTION="WRITE" ADDNEWLINE="No" ...>

Otherwise CF will add an LF to every line, which is not what you think it
will do with this param according to the books....



Yours,

Kym


========================================================================
     This list server is Powered by iMS
   'The Swiss Army Knife of Mail Servers'
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================

Reply via email to