title: C : Reading bytes from binary file
body: <p>I am currently trying to read 256 bytes from a binary file and not getting any output (or errors) when running my program. I am a little confused where I am going wrong on this. Attempting to read each <code>byte</code> as a <code>char</code> and store as a char array of length 256. I have reviewed similar questions on SO already and haven't had any luck so far. Simplified version of my code below:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(int argc, char *argv[]){
      FILE *binary = fopen(argv[1], "rb");
      char bytesFromBinary[256];
  
      fread(&amp;bytesFromBinary, 1, 256, binary);
      printf("%s", bytesFromBinary);
      return 0;
  }
  </code></pre>