title: error while reading a text file in ruby
body: <pre><code>def read_file_info(*file_name)
    arr = IO.readlines(file_name)
    puts arr
  end
  
  read_file_info("abcd.txt")
  </code></pre>
  
  <p>is giving me an error in </p>
  
  <pre><code>readlines': no implicit conversion of Array into String (TypeError)
  </code></pre>