title: fscanf troubles after opening file in C
body: <p>I'm writing a program that opens a file and reads and stores the data.</p>
  
  <p>The layout of the datafile appears as name;id#;score;number</p>
  
  <p>i.e Bobby Ray Reynolds;111;10%;1</p>
  
  <p>How do I store these fields in different variables.
  This is what I'm trying:</p>
  
  <pre><code>    fscanf(fp, "%s %d %d %d", name,id,score,number);
  </code></pre>