File, example
fin = fopen("ph.in", "r");
fout = fopen("ph.out", "w");
while( fscanf(fin, "%f", &mc) != EOF ) {
"concentration = %e\n", mc);
fprintf(fout, "pH = %f\n", ph);
fprintf(fout, "Acidic\n");
fprintf(fout, "Nonacidic\n");
This is program pg64.c.