From: paul vudmaska Date: 2003-09-13T14:43:08+09:00 Subject: Re: fyi : rexml eruby cache'ing >> There are two Ruby idioms that you may prefer to this. 1. File.open with a block: globalXML = nil File.open("xml/global.xml") do |f| globalXML = REXML::Document.new(f) end This implicitly closes the file at the end of the block. 2. File.read: globalXML = REXML::Document.new(File.read("xml/global.xml")) << Thanks for the tips! File.read, this will be ideal for me! __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com