<cfset crlf = chr(13) & chr(10)>
<cffile action="" file="#variables.file#" variable="out">
<cfset out = "my line here" & crlf & variables.out>
<cffile action="" file="#variables.file#" output="#variables.out#"
addnewline="No">

Of course, this requires reading the whole file. If you are on cfmx,
maybe this can be done in java?

Pascal

> -----Original Message-----
> From: CFDEV [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 1 juni 2004 17:11
> To: CF-Talk
> Subject: CFFILE APPEND at the beginning
>
> Hi all,
>  
> The cffile append function append a document at the end..how
> could I insert a line at the beginning instead?
>  
> Thanks
>  
> Pat
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to