I'm working with the open-source thermal simulator HotSpot 6.0, I seek to extract the dimensional parameters -x and -y onto a text file to use for a new thermal modeling tool.
I've tried terminal printing x and y locations:
fprintf(stdout, "Location in x: %u\n", i1);
fprintf(stdout, "Location in y: %u\n", j1);
The above code prints lines of i1 and j1 numbers, but I would like to have them saved to a text file. The code below is my attempt at printing to a text file.
FILE *fptr;
fptr = fopen("Dimensions.txt","w");
fprintf(fptr,"%u\t %u\t",i1,j1);
fclose(fptr);
The output of the code above prints only one line of code. I would like to know why this is to fix it.