Hi, I am using a C program to open and scan a file containing rows of x,y coordinates.
But I need to use the same program to open different files having different number of rows.Therefore, I cant fix a constant number for the array.
This is what I have used:
int i,count=1;
FILE *fp;
float x[count],y[count],multFact;
while (feof(fp)==0)
{
count++;
for(i=0;i<count;i++)
{
fscanf(fp,"%f %f",&x[i],&y[i]);
}
But, the output screen just remains blank.
Can anyone help me with the problem with my logic.