title: C# read text file with HEX value and show it as byte []?
body: <p>I want to take a text file that only have hex value
  this is the text file :  </p>
  
  <pre><code>0xD2 0x00 0xD3 0x04 0xD4 0x77 0x21 0x21 0x3F 0x21 0x21 0x20 0x21 0x23 0x20 0x21 0x3F 0x20 0x21 0x23 0x20 0x21 0x21 0x3F 0x21 0x21
  </code></pre>
  
  <p>and save it as a byte[] array</p>
  
  <p>so the byte array will be :
  byte[] file ={0xD1, 0X00, ........ ,0x21 ,0x21}
  can I do this ? </p>
  
  <ul>
  <li>if needed I can change the file  - remove the spaces, the 0x ...</li>
  </ul>
  
  <p>Thanks , </p>