title: Read RDB files with binaryreader
body: <p>I am Trying to read an <code>.RDB File</code> which is a file containing tables</p>
  
  <p>I tried this</p>
  
  <pre><code>var fs = new FileStream(@"db_banword2.rdb", FileMode.Open);
  var len = (int)fs.Length;
  var bits = new byte[len];
  fs.Read(bits, 0, len);
  // Dump 16 bytes per line
  for (int ix = 0; ix &lt; len; ix += 16)
  {
      var cnt = Math.Min(16, len - ix);
      var line = new byte[cnt];
      Array.Copy(bits, ix, line, 0, cnt);
      // Write address + hex + ascii
      //MessageBox.Show("{0:X6}  " +  ix);
      //MessageBox.Show(BitConverter.ToString(line));
      //Console.Write("  ");
      // Convert non-ascii characters to .
      for (int jx = 0; jx &lt; cnt; ++jx)
          if (line[jx] &lt; 0x20 || line[jx] &gt; 0x7f) line[jx] = (byte)'.';
      listBox1.Items.Add(Encoding.ASCII.GetString(line));
  }
  </code></pre>
  
  <p>and I got the values but with many dots 
  as shown in this picture</p>
  
  <p><a href="https://i.stack.imgur.com/5slb6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5slb6.png" alt="enter image description here"></a></p>
  
  <p>but I need the values to be as shown in this picture</p>
  
  <p><a href="https://i.stack.imgur.com/Kf8IP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kf8IP.png" alt="enter image description here"></a></p>
  
  <p>without dots</p>
  
  <p>I hope you can help me :)</p>