#include <stdio.h>

int main(void)
{
FILE *fp;
int i;
float x[10] ;

fp = fopen ("/home/cpgms/zero2nine" , "r" ) ;

for( i=0; i <10; i++)
{
fscanf (fp,"%f \n", &x[i]);
}

fclose(fp);

for( i=0; i <10; i++)
{
printf ("%f \n", x[i]);

}

return 0 ;
}

Return to previous page