Exactly what you do depends on how your input is formatted, but say you 
had one name per line:

my_array = File.open("example.txt", "r").read.split("\n")
my_array.delete ''
p my_array

-- 
Posted via http://www.ruby-forum.com/.