title: C fread binary number and convert it to Ascii code
body: <p>I'm trying to read the following binary (01100001) from a file and convert it to ascii code (97), but when using fread i'm getting a very big numbers.
  the file "c:/input.txt" contain only the following line -01100001
  printf of the array values print big numbers, such as 825241648</p>
  
  <p>My code:</p>
  
  <pre><code>int main()
  {
      unsigned int arr[8];
      int cnt,i,temp=0;
      FILE * input;
      if(!(input=fopen("C:/input.txt","r")))
      {
          fprintf(stderr,"cannot open file\n");
          exit(0);
      }
      cnt = fread(arr,1,8,input);
      for(i=0;i&lt;cnt;i++)
      {
          printf("%d\n",arr[i]);
      }
      return 0;
  }
  </code></pre>
  
  <p>any idea why?</p>