Firstly I am not a java developer and do most of my java work via google
. I am trying to have a search and replace function in ECMAScript
that reads in a file, and then does a search and replace for certain
strings, and using variables as the replacement variable.

Seeing posts like these in the forums:

http://tinyurl.com/5bb3vq

http://tinyurl.com/6kpm68

Gives me the idea I could use java.io.FileReader and FileWriter to do
the search and replace, but would love some help with the how to.

Have found a great Java example of using a hashtable to do the search
and replace here: 'Re: Searching/replacing multiple words in input.'
(http://tinyurl.com/6dn85x)

However would like to do something like that but in ECMAScript so that
I won't require an extra jar in my IDM directory, and have to restart
eDir each time I make a change to the code.

Any suggestions as to how I could achieve this?


--
plambrechtsen
------------------------------------------------------------------------
plambrechtsen's Profile: http://forums.novell.com/member.php?userid=13537
View this thread: http://forums.novell.com/showthread.php?t=353433