title: How to get float from file using getc() in C?
body: <p>I have a file with ";" as a separator, i want to get some characters and save them as float, I've come up with something like this:</p>
  
  <pre><code>int c;
  char help[10];
  float x;
  while(getc(c)!=';'){
  strcpy(help, c);
  }
  float = atof(help);
  </code></pre>