Craig Demyanovich wrote: > Looks like you forgot to change this line > > sktylist = Hash.new("") > > to > > sktylist = Hash.new( [] ) > > which makes the default value for new elements an empty array instead of > a > string. Only then can you use the << operator to push values on to the > array. > > Regards, > Craig Still get the same thing, sorry I must be doing it wrong... class Info attr_reader :acct, :money def initialize(filename) @acct = File.new(filename, "r") end f = Info.new("SKTYFutBalances20080415.txt") act = f.acct act.each do |list| #covert me to a string futbal = list.to_s #Pull accounts office = futbal[21..23] if office == "RPT" next else @acctnum = futbal[24..28] end #Pull Liquidating values @lv = futbal[217..230] #Pull LV Indicator is_negative = futbal[215..215] == '-' value = @lv.to_f/100 value = -value if is_negative #puts @acctnum,value #test = @acctnum.to_sym sktylist = Hash.new( [] ) sktylist[ @acctnum ] << value p sktylist end end -- Posted via http://www.ruby-forum.com/.