OL,
Maybe I can suggest a few of the 'pieces'.
I think there is
not a specific, ready-made OpusScript function that will surgically find and replace a word within a text file. However you can make one.
My understanding of Windows is that even if you are going to replace only one Word in a file, essentially you are going to Read the whole file back, change it, and Write the whole file. So that is what I think you have to construct for your purposes here.
What I suggest is you Read file and Write file. In between, you simply set that read to a variable (string).
Here is what I suggest you use to do the 'find' & 'replace':
viewtopic.php?f=4&t=3745&hilit=join see the Post from Mackavi on August 30th, 2009, 8:43 amThere are other OpusScript functions you could use, such as 'FindText()' or 'FindTextInSelection()', which are essentially string manipulations... that may help you here, but you are still bringing in the whole contents of the file anyway.
Is this what you are after?