David Bailey wrote last Thursday, April 20, 2006 5:01 PM:
...
#   fileOut.puts(histHash[i])
                     ^^^^^
there is a problem here. consider..

irb(main):003:0> puts [10,1]
10
1
=> nil
irb(main):004:0> puts [10,1].to_s
101
=> nil

i think you wanted the latter, so  

 fileOut.puts(histHash[i].to_s)

should do.

some tips:

1 try unit test
2 yaml
3 marshal

kind regards -botp