this is what i have done...
my datafull.txt contains;
1.11111 2.111111 3.11111111 4.1111111111 5.1111111 6.1111111 7.1111111111 8.1111111111 9.11111111 10.11111111111 11.1111111 12.11111111 13.111111 14.1111111 16.11111111 17.1111111111 18.111111111 19.111111111 20.111111111 21.1111111 22.1111111 23.111111 24.1111111 25.1111111 26.1111111111 27.11111111 28.111111111111 29.11111111 30. 1111111 31.1111111 32.111111111 33.1111111111 34.11111111 35.111111111 36.11111111(end of first line)
1.2222222 2.22222 3.22222 4.2222 .22222 6.22222 7.222222 8.22222 9.2222 10.22222 11.222222 12.2222222 13.22222 14.2222222 15.222222 16.22222 17.222222222 18.2222222222 19.222222222 20.22222222222 21.22222 22.22222 23.22222 24.22222 25.2222 26.2222 27.22222 28.2222 29.222 30.2222 31.22222 32.2222 33.22222222 34.222222 35.22222 36.222222222(end of second line)
1.3333333 2.33333 3.33333 4.33333 5.3333 6.333 7.3333 8.3333 9.333 10.333333 11.33333 12.3333 13.3333 14.3333 15.3333 16.333 17.3333 18.333 19.333 20.333 21.333 22.3333 23.333 24.3333 25.333 26.3333333 27.33333 28.33333333 29.33333 30.3333 31.333 32.33333 33.3333 34.3333 35.3333 36.333333)end of third line)
Code:
#include<stdio.h>
#include<conio.h>
#include<string.h>
int main(void)
{
FILE *fp;
int i;
double num[100];
char buf[100];
clrscr();
fp=fopen("datafull.txt","r");
fseek(fp,0,SEEK_SET);
for(i=0;i<36;i++)
{
if(sscanf(buf,"%lf",&num[i])!=1)
{printf("Error"); }
printf("%lf\n" ,num[i]);}
fclose(fp);
getch();
return 0;
}