title: Load File to Array
body: <p>I'm tired of searching about Load file from pc to my app. and then read a file in hex. 
  Now I have these code and everything is ok with small file size. Less than 1GB files</p>
  
  <p><strong>my question is</strong></p>
  
  <p>all of us know Hex files reader like (<em>Hex Workshop Editor 6... and Hex Editor Neo</em>)</p>
  
  <p>I download these and I read the hex of file over (36 GB) (39,490,420,735 bytes)
  <strong>without any save bytes in Ram Memory</strong>???</p>
  
  <p>IN vb.Net when I try to read Hex of file over 1GB in array.> windows 7 not responding</p>
  
  <p>I know that's because I have 2GB in my machine!</p>
  
  <p><strong><em>what's the way that (hex workshop) use to load any file Regardless of size</em></strong></p>
  
  <p>This is the code that I use.</p>
  
  <pre><code>X = String.Join(" ", IO.File.ReadAllBytes("Location of file").Select(Function(b) b.ToString("X2")).ToArray())
  </code></pre>
  
  <p>Please any idea?</p>