title: How to retrieve all hexadecimal values of a .txt in java
body: <p>I have a file with many lines.
  Ex :</p>
  
  <pre><code>toto    = 0x0020 tata 0x2000 0x0003
  tata    = 0x0001
  tututtt = 0x0021
  =&gt; 0x3200
  </code></pre>
  
  <p>I just want to have these hexadecimal values in a byte array.
  I've tried to use a BufferReader and split lines with the " " but I need to find a way to keep exclusively hexadecimal values.</p>
  
  <p>Thanks in advance for your help.</p>