title: fscanf reading problem
body: <p>sorry, perhaps this is a stupid question.</p>
  
  <p>I have a file like this:</p>
  
  <p>36  146     10  53  240     133     104     28  51  81  124     ...</p>
  
  <p>so I want to read the numbers from a program, so I do:</p>
  
  <p>.... some function .....</p>
  
  <pre><code>int i;
      unsigned char key[16];
      FILE *fp;
  
  printf ("\n ------ \n");
  
  // open filename 
  fp = fopen("key.txt","a");
  
  printf("reading 128 bit key:\n");
  for (i = 0; i &lt; 16; i++){
      fscanf(fp,"%d \t", &amp;key[i]);
      printf ("%d \t", key[i]);
  }
  
  printf ("\n ------ \n");
  
  fclose(fp);
  return 0;
  </code></pre>
  
  <p>but when the program prints the results on screen I just get :</p>
  
  <p>0   0   0   0   0   0   0   0   0   0   0   0   0   0    .....</p>
  
  <p>any ideas ?</p>