From: ngoc Date: 2005-11-08T06:12:12+09:00 Subject: from text file to array in shortest way books_array = Array.new() File.open('books_file.txt').each { |line| books_array.push(line) } Are there other ways shorter than above ? For example: books_array = File.open('books_file.txt').to_array()