title: Read 1 byte from file
body: <p>I need to read a single byte from a file. Normally when reading, I use a char array as the buffer. However, I need to be able to perform binary operations with byte, which can't be done with a char array. Here's what I've got:</p>
  
  <pre><code>read(file, buffer, 1);
  </code></pre>
  
  <p>I've tried making buffer both a char and an int, but both give me warnings that it expects a void * argument. But of course, that doesn't allow for binary operations like &amp;.</p>
  
  <p>How can I store buffer such that I can perform binary operations on it?</p>