title: how to read specific value from file in c
body: <p>if i have file contain students scores
  for example this file </p>
  
  <pre><code>{ 
  students scores :
  100
  90
  83
  70
  }
  </code></pre>
  
  <p>how i can read just the values of scores with out reading "students scores :"???</p>
  
  <p>mu code is already ok 
  but the problem in reading values</p>
  
  <p>this is my code</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main (void)
  {
      FILE *infile;
      double score, sum=0, average;
      int count=0, input_status;
  
      infile = fopen("scores.txt", "r");
      input_status = fscanf(infile, "%lf", &amp;score);
      while (input_status != EOF) 
      {
          printf("%.2f\n ", score);
          sum += score;
          count++;
          input_status = fscanf(infile, "%lf",  &amp;score);
      }
      average = sum / count;
  
      printf("\nSum of the scores is %f\n", sum);
      printf("Average score is %.2f\n", average);
      fclose(infile);
      getch();
  }
  </code></pre>