Thanks for your help earlier today!
Here's another: newcalib.cal is empty after execution.
Code:
/* Program DIVIDE */
#include <stdio.h>
FILE* one;
FILE* two;
FILE* three;
FILE* four;
int main(void){
float raw;
float data;
float delta;
int dud;
one = fopen("my113a_8_00.avg", "r");
two = fopen("my113a_8_00C.dat", "r");
three = fopen("differentials.dat", "r");
four = fopen("newcalib.cal", "w");
while(!EOF){
fscanf(one,"%f", &raw);
fscanf(two,"%f", &data);
fscanf(three,"%d %f", &dud, &delta);
printf("%f\n", delta);
fprintf(four,"%f", raw/(delta+data));
}
fclose(one);
fclose(two);
fclose(three);
fclose(four);
}