title: groovy read from URL file and store it in the list
body: <p>I have file stored in the website, I want to read the file and store each line in array list.</p>
  
  <p>Currently using this code, it works. Is there a better way of doing this part of the code.  </p>
  
  <pre><code>def data = u.toURL().text
  def keys = new ArrayList()
  data.eachLine {
     keys.add(it)
  }
  </code></pre>