Need to read String and Double from file
<p>I'm having some trouble trying to read a String and a Double from a txt file. 
Here is my txt file:</p>

<pre><code>Mike 300.50
John 260
Lisa 425.33
</code></pre>

<p>And here is the code I am using to read them:</p>

<pre><code>reader = new Scanner();
while(reader.hasNext()){
    name= reader.next();
    salary = reader.nextDouble();
    System.out.println(name + " " + salary + "\r\n");
}
</code></pre>

<p>Whenever I run this code, <code>Exception in thread "main" java.util.InputMismatchException</code> appears telling me the problem is in <code>nextDouble()</code>.</p>

<p>Does anybody know how to solve this?</p>