#include int main(){ FILE *nmrdata; float x[8192], y[8192]; int numlines, i; nmrdata = fopen("testdata.dat", "r"); if ( nmrdata != NULL ) { numlines = 0; while ( !feof(nmrdata) ) { fscanf(nmrdata, "%f %f", &x[numlines], &y[numlines]) ; numlines++; } numlines--; fclose(nmrdata); } else { printf("-- Error Opening File --\n"); } for (i=0; i