Writing configuration data to a file using simulator1 and reading the configuration data from the file using simulator2

*In reply to chr_sue:

Thanks chr_sue for your observation.
Also I modified the code with some changes for uvm_printer to uvm_default_printer and now it works -

function void display_config() ; 
 uvm_default_printer.knobs.mcd = $fopen("CONFIG_OVERRIDE_FILE.txt"); // opening the file 
 this.print();   
 $fclose(uvm_default_printer.knobs.mcd); // closing the file    
endfunction

Still the question about reading the configuration remains unanswered. Any suggestions ?

*