Richard Crawford wrote: >Is there a way in Cold Fusion to make changes to a text file without >actually opening that file? *something* will have to open it. :-) >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? Use CFFILE to read the file into a variable. Then do a Replace() on the desired string. Then use CFFILE to write the altered variable value to a 'new' file (or overwrite the old one). -------------------------------------------- Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc. http://mysecretbase.com --------------------------------------------~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]