title: Converting a string of 0s and 1s into a byte array
body: <p>I want to write the following sequence of bits in a textbox, like this:</p>
  
  <blockquote>
    <p>000101100000000100000001000000010000000000100111001100010010000000110000001011100011000000110000001100000011000000100000001100110011100100101110001101110011010100100000001100000010111000110000001110000010000000110000001011100011000000110000001000000011000000101110001100000011000000110000001100000000010111010111</p>
  </blockquote>
  
  <p>But every each 8 bits corresponds to a byte, so I want to store them in a <code>byte[]</code> array. Of course, if I read them like this:</p>
  
  <pre><code>byte[] byteBuffer = Encoding.ASCII.GetBytes(messageTextBox.Text);
  </code></pre>
  
  <p>Each <code>0</code> or <code>1</code> turns into a whole byte, which is not what I want.</p>
  
  <p>Is there any straightforward solution, like some existing method, or I have to develop my own?</p>