title: javaslang/Vavr : How to do a try with resource
body: <p>Here is my code snippet :</p>
  
  <pre><code> public static void main(String[] args) {
  
      Try.of(Main::getLines)
              .onFailure(cause -&gt; log.error("An error has occurred while parsing the file", cause));
  }
  
  private static List&lt;Fiche&gt; getLines() {
      return Files.lines(Paths.get("insurance_sample.csv"))
              .skip(1)
              .map(Main::toPojo)
              .filter(fiche -&gt; fiche.getPointLongitude().equals(-81.711777))
              .peek(fiche -&gt; log.info("Fiche added with success {}", fiche))
              .collect(Collectors.toList());
  }
  </code></pre>
  
  <p>I'm getting Use try-with-resources or close this "Stream" in "finally" clause. on this line <code>Files.lines(Paths.get("insurance_sample.csv"))</code></p>
  
  <p>Anyone can help me to use a try-with-resources using Vavr?</p>