title: Read numbers from text file and use them as input
body: <p>I have this text: </p>
  
  <pre><code>0 0 0 0 0 1
  0 0 0 0 1 1
  0 0 0 1 0 1
  0 0 0 1 1 1
  </code></pre>
  
  <p>I want to read the first 5 numbers from each line and then use them as inputs in a function.</p>
  
  <p>I'm new to c and have only accomplished this code that doesn't do much, if anything really.</p>
  
  <pre><code>    int v,o;
      FILE *mydata;
  
      if ((mydata = fopen("testinputs.txt", "rt"))==NULL)
      {
          printf ("file can't be opened'\n");
          exit(1);}
  
  
      fclose(mydata);
  </code></pre>
  
  <p>How do i complete it?</p>
  
  <p>Thank you.</p>