title: How to read lines from file into array?
body: <p>This is what I want to do, but with a one-liner, if possible:</p>
  
  <pre><code>lines = Array.new
  File.open('test.txt').each { |line| lines &lt;&lt; line }
  </code></pre>
  
  <p>Possible?</p>