On Feb 5, 2008 8:54 AM, Vell <lovell.mcilwain / gmail.com> wrote: > I am trying to get a file into an array using .scan and I can't seem > to get anything to work properly. to avoid doubt, try slowly. this is a first mod/run of your posted code, eg, botp@pc4all:~$ cat test.txt foo1 / bar.edu foo2 / bar.com foo3 / bar.gov botp@pc4all:~$ cat test.rb p File.readlines("test.txt").map{|x| x.chomp} botp@pc4all:~$ ruby test.rb ["foo1 / bar.edu", "foo2 / bar.com", "foo3 / bar.gov"] that is just one way. there are many ways if using ruby. kind regards -botp