title: How to use scanf \ fscanf to read a line and parse into variables?
body: <p>I'm trying to read a text file built with the following format in every line:</p>
  <p>char*,char*,int</p>
  <p>i.e.:</p>
  <blockquote>
  <p>aaaaa,dfdsd,23</p>
  <p>bbbasdaa,ddd,100</p>
  </blockquote>
  <p>i want to use fscanf to read a line from file, and automatically parse the line into the varilables string1,string2,intA</p>
  <p>What's the correct way of doing it ?
  Thanks</p>