That's great, exactly what I was looking for.

Now I'd like to make one more request:
After it opens the file I'd like it to delete the last line of the file which is always the following:
)

then copy the following in the last line (it will copy this same thing everytime also):
"
Z:\0test\0test.EVT)"

After copying the above line, then it will continue with the find/replace function to replace 0test with the filename

Thanks for your help, I spent most of half a day scouring websites and tutorials, still unable to find anything of use. I really appreciate it.

Rolly