how to append to file?

Hi

i have write scripts (inside a policy)
i have write following line :
“global result_file = open_log_file(“result_file”)”
this led to create a new file with result_file in current directory
i want to run my policy to multi file and put output per file in “result_file”
but while i run my policy are create new file and overwrite to old “result_file”

how to append output to old “result_file” without create new file(overwrite)

There's a built-in function open_for_append().

    Vern

i have write scripts (inside a policy)
i have write following line :
"global result_file = open_log_file("result_file")"
this led to create a new file with result_file in current directory
i want to run my policy to multi file and put output per file in "result_file"
but while i run my policy are create new file and overwrite to old "result_file"

I'm not sure what you're asking here.

how to append output to old "result_file" without create new file(overwrite)

You can make appending the default behavior for all of your log files by loading the "log-append" script.

   .Seth