Is this work?

def file_process
  @data=[]
  File.foreach(@file) {|a_line| @data << a_line.chomp.split(/\t/)}
end
-- 
Posted via http://www.ruby-forum.com/.