title: Read a binary file in Scala
body: <p>I have some binary files which are written by a <code>Java</code> application in the following way:</p>
  
  <pre><code>DataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(complete_path_to_file)));
  
  dos.writeInt(aInteger);
  dos.writeLong(aLong);
  dos.writeFloat(aFloat);
  
  dos.close();
  </code></pre>
  
  <p>Now, I'd like to read this kind files in a <code>Scala</code> framework but I really don't have any ideas about how to do that.</p>
  
  <p>Could you help me?</p>