Then if need be, you can do a cffile with action="" to write out the 
modified file, or just dump sFileContent to the client. 
  
This may not be the most elegant solution, but it'll work... (a regular 
_expression_ replace might be much more efficient). 
  
Shawn 
 
-----Original Message----- 
From: Richard Crawford [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 10:29 AM 
To: CF-Talk 
Subject: Editing Files In-Line 
 
 
Is there a way in Cold Fusion to make changes to a text file without   
 
actually opening that file?  
 
  
 
Suppose, for example, that I have a file "myfile.html" which contains   
 
the string "***REPLACE_THIS***".  How can I have Cold Fusion replace   
 
that string in the file?  
 
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]



Reply via email to