title: Is there a CSV Scanning with No line found in.nextLine();
body: <p>I have to work with CSV file but i dont need the first line, i tried 
  to use: <code>be.nextLine()</code> it worked with other project but not with this one. <code>Scanner be = new Scanner(new File("autok.csv"))</code></p>
  
  <p>There is a CSV file i working with looks like this:</p>
  
  <p>First line: | Departure | Destination | Number |     Tel    | room |
  Second line:|  Budapest |    Moscow   | PQA-209| 30/5555555 |  5   |
  Third line  |  Budapest |   Berlin    | ASD-444| 30/4444855 |  3   |</p>
  
  <p>This is what i tried and worked perfectly with other projects:</p>
  
  <pre><code>static ArrayList&lt;autok&gt; kocsi = new ArrayList&lt;&gt;();
  
  public static void main(String[] args) {
    try (Scanner be = new Scanner(new File("autok.csv"))){
    be.nextLine();
    while(be.hasNextLine()){
        String[] s = be.nextLine().split(";");
        autok d;
        d = new autok(s[0],s[1],s[2],
                      Integer.parseInt(s[3]),
                      Integer.parseInt(s[4]));
        kocsi.add(d);
    }
    }catch (IOException ex) {
        System.out.println("Hiba");
    }
  
  int  asd = kocsi.size();
  for(int i =0; i&lt;asd;i++){
      System.out.println("hirdetők száma: " + kocsi.size());
  }
  
  }```
  </code></pre>
  
  <p>POJO:</p>
  
  <pre><code>        this.indulas = indulas;
          this.cel = cel;
          this.rendszam = rendszam;
          this.telefonszam = telefonszam;
          this.ferohely = ferohely;
      }
      private String indulas;
      private String cel;
      private String rendszam;
      private int telefonszam;
      private int ferohely;
  </code></pre>
  
  <p>and the GETTERS.</p>
  
  <p>As it looks i want to work with this CSV but it gives back the error: 
   <code>java.util.NoSuchElementException: No line found</code> for the : <code>be.nextLine();</code>
  Any help would be appreciated.</p>