/** * Simple file reader using fscanf. * Paired closely with writer * @author gtowell * Created: April 2021 * **/ #include int main(int argc, char const *argv[]) { int a; double b; FILE *fp = fopen("lab18a", "r"); fscanf(fp, "%d %lf", &a, &b); fclose(fp); printf("%d %f\n", a, b); return 0; }