this is what i meant:

Code:
#include <acknex.h>
#include <stdio.h>

void main()
{
	float f;
	FILE *file = fopen("numbers.txt", "r");
	while(fscanf(file, "%f", &f) == 1)
	{
		printf("%f", (double)f);
	}				
	fclose(file);
}



no need to do any counting beforehand. it also is very forgiving with newlines and whitespace.