Click to See Complete Forum and Search --> : search and replace string in an ASP file


Foundas
05-29-2006, 05:50 AM
Hi all,


i am trying to automate a procedure and i need your help. I have the original file with name: test.asp

In there, there is a line like this: <!--#include file="../sorry.asp"-->


what i am looking for is to search and replace that line with this message: "LINE HAS BEEN REPLACED"

Is there a way to do this using asp (not the .net) ??


Thanking you in advance

ray326
05-29-2006, 04:34 PM
Sounds like a job for a text editor, not ASP/VBscript.