From: Alex Young Date: 2007-11-15T05:18:03+09:00 Subject: Re: Transfer content of flat file to an array Surjit Nameirakpam wrote: > Scenario .. > > I have a text file > > 23 > 24 > 56 > 78 > 90 > 89 > > I want to transfer this content into an array, > numArr=[23,24,56,78,90,89] > > How to do it File.readlines, map, to_i. -- Alex