1.0 should really be there :S
Is the fget here pulling that first line away then?while (((line_ptr=fgets(line,sizeof(line), input_stream))!=NULL) && ((no_values= sscanf(line,"%lf %lf",
¤t_measurements_ptr->x,
¤t_measurements_ptr->y))==2))