while(fgets(line, sizeof line, file)}
{
if(sscanf(line, "%lf,%d", &a[i], &b[i]) == 2)
{
++i;
}
}
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Show us what you have and we can help you fix it. But do it in an new thread. It's not nice to hijack someone else's thread.
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944