title: LUA - Read a binary file bit by bit
body: <p>You can <strong>read a binary file</strong> byte by byte using <code>f:read(size)</code> in which size represent the number of byte but <strong>how can I read it bit by bit ?</strong> (1/8 of byte or octet if you want)</p>
  
  <p>It's ok for most of the data Int8(1),Uint16(2),Uint32(4),Int*(4)
  But for BOOL(0.125 ?).</p>
  
  <p>Thanks for your help !</p>
  
  <p><strong>EDIT :</strong> My problem is obviously not to read the file bit by bit but to manage to extract all the data, including some boolean value (without creating a "shift" of 1 bit).</p>