title: Java - Skip first line while using try with resources
body: <p>I need to skip the very first line of what is found in the file. My code:</p>
  
  <pre><code>List&lt;String&gt; readStuff() {
      String pathName = "D:/java/eclipse/someStuff.txt";
      List&lt;String&gt; list = new ArrayList&lt;&gt;();
      try (Stream&lt;String&gt; lines = Files.lines(Paths.get(pathName))) {
          list = lines.collect(Collectors.toList());
      } catch (IOException e) {
          System.out.println("Failed to load file.");
      }
      return list;
  }
  </code></pre>