title: How to store large arrays of booleans in file with the most light size?
body: <p>My program produces large arrays filled with booleans.
  I need the most compact way to save those in file.</p>
  
  <p>I read here <a href="http://www.kirupa.com/forum/showthread.php?339670-How-is-boolean-represented-in-memory" rel="nofollow">http://www.kirupa.com/forum/showthread.php?339670-How-is-boolean-represented-in-memory</a> that 8 booleans in memory may represented as single byte, so single boolean is single bit.
  But how I can save those arrays of booleans same compact into a file? I know - file write functions is kind of operate with bytes, instead of bits.</p>
  
  <p>Shortly - I want to be able to save arrays of booleans into file, with size 8 times less than Array.Length</p>