Ovm reporting

In reply to sharan_basappa:

Hi,

Is there any way by which we can open a file in append mode. I observed that following line opens a file in write mode.
OVM_FILE fd = $fopen(“env2.log”); //open log file

code like
OVM_FILE fd = $fopen(“env2.log”, “w”); //open log file

doesn’t write anything in the file, in fact gives error.
Can we control modes n which files are opened? Similar code does work in simple SV environment but not OVM. Is there something I am missing.

Thanks.