title: C: How to read a string from a file and assigning it to an element from a structure
body: <p>The structures are already defined.
  I would really appreciate any help.</p>
  
  <pre><code>FILE *fptr;
  int ch;
  
  fptr("...","r");  
    while ((ch = fgetc(fptr)) != ';'){
      }
  strcpy(game-&gt;players[0].name,ch);
  fclose(fptr);
  </code></pre>