From: Catsquotl Date: 2011-03-12T07:17:26+09:00 Subject: Array question. Hi, I have a csv file. #several really That file is fed to the @points variable (see below) when creating an instance of the class. I'd like b[5] to hold an array of all remaining records in the file left on that line. Now it just pushes the 5th record. I can add b[6] which will get the next record. But The number of records left vary.... I am building my app slowly. i'd like to be able to get the same functionality somewhere in the middle also. as i have 3 fixed variables in my Acupunt class and 2that can have more than 1 value. I am guessing i have to look at a new approach here. ---------------------------------------------- def set_punten @punten=[] File.open("#{@points}", "r").each {|e| e.chomp! b=e.split(";") @punten.push(Acupunt.new(b[0],b[1],b[2],b[3],b[4],b[5])) } end ----------------------- any suggestions? Eelco