Tuesday, 14 June 2016

How to save vugen co-related value in a file


In case you face such scenario in which you need to save your co-related value in a file.

For example

web_reg_save_param("c_Incident","LB=abc", "RB=def", LAST);

// call this function wherever you want to save your co-related value
writeInfoToFile();

void writeInfoToFile();
{
           long File_Stream;
Char *Filename="D:\\Incident.txt";
//Open the file with read access

If((File_Stream= Fopen(Filename,"a+"))==NULL)
{
lr_error_message("Can't open %s ", Filename);
}

fprintf(File_Stream,"\r\n%s", lr_eval_string("{c_Incident}"));


//Close the file
If(fclose (File_stream))
{
 lr_error_message(error close file %s ",Filename);
}
}

No comments:

Post a Comment