Storing 9 bits in the file
<p>So I need to write algorithm which load the binary file and prefix every byte with one extra bit. </p>

<p>So if this is my binary file opened in "Binary editor":</p>

<p>0 1 0 0 0 0 0 0 </p>

<p>0 0 0 1 0 0 0 0</p>

<p>0 0 0 0 0 0 0 0</p>

<p>0 0 1 0 1 0 0 0</p>

<p>0 1 0 0 0 0 0 0</p>

<p>After processing i will have:</p>

<p><strong>1</strong> 0 1 0 0 0 0 0 </p>

<p>0 <strong>0</strong> 0 0 0 1 0 0 </p>

<p>0 0 <strong>1</strong> 0 0 0 0 0 </p>

<p>0 0 0 <strong>1</strong> 0 0 1 0 </p>

<p>1 0 0 0 <strong>0</strong> 0 1 0 </p>

<p>0 0 0 0 0 0 0 0</p>

<p>What "tool" can I use in c++ to achieve this goal ?</p>
