title: Reading only x number of bytes from file in VB.NET
body: <p>I use this code to read full hex of file :</p>
  
  <pre><code>Dim bytes As Byte() = IO.File.ReadAllBytes(OpenFileDialog1.FileName)
  Dim hex As String() = Array.ConvertAll(bytes, Function(b) b.ToString("X2"))
  </code></pre>
  
  <p>Can i only read like first X number of bytes and convert it to hex?</p>
  
  <p>Thanks,</p>