On Wed, 12 May 2004 13:05:50 -0400, Philip Arnold wrote:

>> From: Nathan R. Jessop
>>
>> I have an app where I'm opening a file (text file) on the
>> server (with no file extension) and displaying the contents
>> on my page in a TEXTAREA.
>
>It might be that the form is converting single character returns chr(13)
>to chr(13) & Chr(10), which your apps might see as the wrong format
>
>You might wanna try asking technical questions on CF-Talk though rather
>than CF-Community

So what should I be doing to get around this?

Do a Replace on my variable #FORM.textvar# before writing it?

<cfif #FORM.id# IS "Save">
<!--- Save File --->
<cflock timeout="5" name="writefile" type="EXCLUSIVE">
<cffile action="" file="C:\cygwin\etc\profile" output="#FORM.textvar#" addnewline="Yes" attributes="normal">
</cflock>
<br>
<p class="wdirlinks" align="center">C:\cygwin\etc\profile SAVED successfully.</h5>
</cfif>
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to