Place below code in vuser_init() section:
long InvoiceRequestID_file;
char *InvoiceRequestID="c:\\InvoiceRequestId.dat";
Place below code in Action part:
Here InvoiceRequestId is the variable name that in web_reg_save_param();
if ((InvoiceRequestID_file = fopen(InvoiceRequestID, "a+")) == NULL )
{
lr_error_message("Cannot open %s", InvoiceRequestID);
return -1;
}
fprintf(InvoiceRequestID_file, "%s\n",lr_eval_string("{InvoiceRequestId}"));
fclose(InvoiceRequestID_file);
Output: All value of InvoiceRequestId will be captured in InvoiceRequestId.dat file and new value will be append at the end of file.
Note : No need to declare a+ anywhere as it takes as the string.
long InvoiceRequestID_file;
char *InvoiceRequestID="c:\\InvoiceRequestId.dat";
Place below code in Action part:
Here InvoiceRequestId is the variable name that in web_reg_save_param();
if ((InvoiceRequestID_file = fopen(InvoiceRequestID, "a+")) == NULL )
{
lr_error_message("Cannot open %s", InvoiceRequestID);
return -1;
}
fprintf(InvoiceRequestID_file, "%s\n",lr_eval_string("{InvoiceRequestId}"));
fclose(InvoiceRequestID_file);
Output: All value of InvoiceRequestId will be captured in InvoiceRequestId.dat file and new value will be append at the end of file.
Note : No need to declare a+ anywhere as it takes as the string.
No comments:
Post a Comment