How do i read in binary data files in java
<p>So I'm doing a project for school where I need to read in a binary data file and use it to make stats, like strength and wisdom, for characters. It's set up so the first 8 bits make up one stat.</p>

<p>I was wondering what the actual syntax to do this is. Is it like reading text files, like this.</p>

<pre><code>File file = new File("CharacterStats.dat");
Scanner inputScanner = new Scanner(file);

inputScanner.next();
</code></pre>