From: Hassan Schroeder Date: 2010-10-25T02:38:27+09:00 Subject: Re: Utilizing data from a csv file On Sun, Oct 24, 2010 at 9:50 AM, Paul Roche wrote: > "Songname","owner" > ################## > "Superfast Jellyfish","mick" > "On Melancholy Hill","ken" > ###################### > > I have a reader class that successfully reads the csv file. > > p songs = reader.read_in_songs(song_csv_file_name) > > returns this... > >  Superfast Jellyfish mick >  On Melancholy Hill ken ?! So, I'd say you need to work on that -- there's no obvious way to split either of those into 2 fields. I would think you'd want to return something per line like e.g. {:owner=>"mick", :songname=>"Superfast Jellyfish"} which you could then pass to Song.new -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan