title: Using fscanf to read comma delimited doubles
body: <p>How would I read comma delimited doubles with no white space?</p>
  
  <p>I tried the following:<code>fscanf(file, "%lf[^,], &amp;x)</code> but it doesn't work.</p>
  
  <p>The file will be in the following format:</p>
  
  <pre><code>1.0,2.0,4.0
  3.0,6.0,1.0
  </code></pre>