Quote Originally Posted by CommonTater View Post
Welllll... you could put on your glasses, make a nice cup of coffee and sit to do a little reading.

Or... you could get started on it, get the project as far as you can... then post your code and ask specific questions.
You are right! I should post my code first. Here is my unworking code. In the code, I assume there is less than 100 double values.


Code:
#include <stdio.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>


int main(int argc, char *argv[])
{

    FILE *file1 = fopen( argv[1], "r" );



    if ( argc !=2 ) /* argc should be 5 for correct execution */
    {
        printf( "Error of input argument number" );
    }

    int i;
    double bb;
    for (i=1;i<100;i++){
        fscanf(file1, "%f",bb);
        printf("%f",bb);
    }
}