Hi pistolero,
Please find the below example.
vuser_init()
{
int i = 100;
char c = 'C';
float f = 1.234;
return 0;
}
Action()
{
int i = 100;
char c = 'C';
float f = 1.234;
long file;
char * filename = "C:\\Files\\Srihari2.txt";
// Create a new file
if ((file = fopen(filename, "w+" )) == NULL) {
lr_output_message("Unable to create %s", filename);
return -1;
}
fprintf(file, "%d %c %f", i, c, f);
fclose(file);
}
Regards,
Srihari
Please find the below example.
vuser_init()
{
int i = 100;
char c = 'C';
float f = 1.234;
return 0;
}
Action()
{
int i = 100;
char c = 'C';
float f = 1.234;
long file;
char * filename = "C:\\Files\\Srihari2.txt";
// Create a new file
if ((file = fopen(filename, "w+" )) == NULL) {
lr_output_message("Unable to create %s", filename);
return -1;
}
fprintf(file, "%d %c %f", i, c, f);
fclose(file);
}
Regards,
Srihari