Ah, your concern is that the file is not being wiped prior to output being printed. Otherwise an input file of "this that integer something else" would turn into "this that integer something elsethis...
Type: Posts; User: Chris.Brown.SPE
Ah, your concern is that the file is not being wiped prior to output being printed. Otherwise an input file of "this that integer something else" would turn into "this that integer something elsethis...
Yup, that works. Glad we could help!
So are we done here or still having a problem?
Assuming his array is a list of words in the file then my previous post is valid. Just move where you are replacing old with new into the for loop and have it act on the actual array item (not itself...
Why are you doing the replace before the loop? This should be done in the loop on each array piece as it is added to the string. Get array piece, replace words, add to output. Then at the end just...
What is the text of the original input file?