title: Reverse of Convert.toString(b,2)
body: <pre><code> byte[] fileBytes = File.ReadAllBytes("D:\\a.txt");
          StringBuilder sb = new StringBuilder();
  
          foreach (byte b in fileBytes)
          {
              sb.Append(Convert.ToString(b, 2).PadLeft(8, '0'));
          }
  </code></pre>
  
  <p>after these steps I want to get filebytes from sb.
  thanks in advance.</p>
  
  <p>PS: what i am trying to do is convert a file to 0s and 1s and then convert it back to that file</p>