title: reading individual bytes of multiple binary files using the Python module fileinput
body: <p>I can read the first byte of a binary file like this:</p>
  
  <pre><code>with open(my_binary_file,'rb') as f:
      f.read(1)
  </code></pre>
  
  <p>But how do I do this with the module fileinput? If I run this code:</p>
  
  <pre><code>import fileinput
  with fileinput.FileInput(my_binary_file,'rb') as f:
      f.read(1)
  </code></pre>
  
  <p>then I get this error:</p>
  
  <pre><code>AttributeError: 'FileInput' object has no attribute 'read'
  </code></pre>
  
  <p>Is there a module similar to fileinput, which allows me to read bytes/characters of multiple binary files instead of lines?</p>
  
  <p>EDIT: Reading a line of the binary file and looping over it is not an option, as the binary file is large and contains no line breaks.</p>