ok problem looks simple for now.
here is the text that i want to read from the file.
i had this line in the code. c=fscanf(fp,"%lf %lf
now it reads the table fine when the values are two. but it doesnt read the table properly if their is only one value in the record.
can anyone help in writing the line for scaning the record line with one value.