Rmagic looks like it will work a treat. Many thanks again, Jim. -- Posted via http://www.ruby-forum.com/.