From: Douglas Seifert Date: 2009-09-19T09:51:44+09:00 Subject: Re: Getting to one attribute of my marshalled array of objects --000e0cd5d15ca5e8900473e392ad Content-Type: text/plain; charset=ISO-8859-1 One other thing: >> def initialize >> if File.exists?(@@inventoryFile) >> File.open(@@inventoryFile) do |file| >> @carArray = Marshal.load(file) >> end >> else >> @carArray = Array.new >> @carArray[0] = Car.new(nil, nil, nil, nil, nil, nil) >> > I would delete the above line, it is not needed. You should use the fact that the array itself is empty to denote there are no cars in the inventory, not a fictional marker car with nil VIN. -Doug Seifert --000e0cd5d15ca5e8900473e392ad--