title: Java Scanner won't read
body: <p>I'm trying to read from a file that has information written in the format:
  someName:aDoubleNumber
  and returns the name and the double.
  I've written the following scanner, but it doesn't work, any ideas why?</p>
  
  <pre><code>Scanner readFile = new Scanner("text.txt");
  readFile.useDelimiter(":");
  while (fileScanner.hasNext()) {
  String name = readFile.next();
  }
  </code></pre>