title: Scanner scans first line and only the first input of the second line
body: <p>I'm creating this code where a scanner should scan every word in the text file and then proceed to save each and every one of them in a specific array. But every time the scanner starts to scan it only reaches the next line and stops at the first word. I don't know what is causing this exactly. I'm using a delimiter where it separates words between commas ",".</p>
  
  <p>Here is the piece of code:</p>
  
  <pre><code>package ex13a;
  import java.util.Scanner;
  import java.io.*;
  /**
   *
   * @author Work
   */
  public class Ex13a {
  static Scanner scan = new Scanner(System.in);
  static int[] number = new int[100];
  static String[] f_users = new String[100];
  static String[] l_users = new String[100];
  static String[] passwd = new String[100];
  static int i = 0;
  static String fullName;
  
  /**
   * @param args the command line arguments
   * @throws java.io.IOException
   */
  public static void main(String[] args) throws IOException {
  String path = "C:\\Users\\Work\\Desktop\\users.txt";
  File inFile = new File(path);
  Scanner inPut = new Scanner(inFile).useDelimiter(",");
  Scanner inPut2 = new Scanner(inFile);
  while(inPut.hasNext()){
      System.out.println(number[i] = inPut.nextInt());
      System.out.println(f_users[i] = inPut.next());
      System.out.println(l_users[i] = inPut.next());
      System.out.println(passwd[i] = inPut.next());
  
      i++;
  
  }
  </code></pre>
  
  <p>It throws me that error:</p>
  
  <pre><code>1
  Ahmed
  Dhaif
  asdf56
  Exception in thread "main" java.util.InputMismatchException
  2
  at java.util.Scanner.throwFor(Scanner.java:864)
  at java.util.Scanner.next(Scanner.java:1485)
  at java.util.Scanner.nextInt(Scanner.java:2117)
  at java.util.Scanner.nextInt(Scanner.java:2076)
  at ex13a.Ex13a.main(Ex13a.java:32)
  C:\Users\Work\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53:     Java returned: 1
  BUILD FAILED (total time: 0 seconds)
  </code></pre>