From: "Eustáquio 'TaQ' Rangel" Date: 2007-11-15T05:20:41+09:00 Subject: Re: Transfer content of flat file to an array -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > 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] >> File.readlines("surjit.txt").map {|item| item.chomp} => ["23", "24", "56", "78", "90", "89"] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFHO1iTb6UiZnhJiLsRApK1AKCNW3uah81gxjhPRfbycRpidF9ORwCeMY6z Z8ZmbQqMMG2vUAfkRSzvDb0= =pKJi -----END PGP SIGNATURE-----