I was trying something along these lines...
It would maybe do the first number correctly, but then I'm not sure what it was doing. I really didn't get that far.
(This is simplified, delta is defined and things.)
Code:
fx=fopen("x.txt", "a+");
for(i=0; i<10; i++){
fscanf(fx, "%lf\n", &previous);
fprintf(fx, "%e", previous+delta);
}
fclose(fx);
Any comments on that?
I was hoping that each time previous would switch to the number that had just been printed and it would move down the line, but it doesn't seem to be happening.