title: How can I read specific data columns from a file in c
body: <p>Good day all,</p>
  
  <p>I am a beginner in c programming.I have this problem and have have spent quite a huge amount of time on it without any considerable progress.</p>
  
  <p>My problem is stated thus:</p>
  
  <p>I have a series of files with the extension (.msr), they contain measured numerical values of more that ten parameters which ranges from date,time,temperature, pressure, .... that are separated by semi colon.
  The examples of the data values are shown below.</p>
  
  <pre><code>2010-03-03 15:55:06; 8.01; 24.9; 14.52; 0.09; 84; 12.47;
  2010-03-03 15:55:10; 31.81; 24.9; 14.51; 0.08; 82; 12.40;
  2010-03-03 15:55:14; 45.19; 24.9; 14.52; 0.08; 86; 12.32;
  2010-03-03 15:55:17; 63.09; 24.9; 14.51; 0.07; 84; 12.24;
  </code></pre>
  
  <p>Each of the files have as a name REG_2010-03-03,REG_2010-03-04,REG_2010-03-05,... and they are all contained in a single file.</p>
  
  <ol>
  <li><p>I want to extract from each of the file the date information which in this case 2010-03-03, column 3 and column 6.</p></li>
  <li><p>Find the statistical mean of the each of the columns of 3 and 6.</p></li>
  <li><p>Then store the results in a new file which will only contain the date,and the calculated mean of the columns above for further analysis.</p></li>
  </ol>
  
  <p>They are to be written in c.</p>
  
  <p>I am really counting or your assistance to this to get going on this.</p>
  
  <p>Regards</p>