fyi : rexml eruby cache'ing

P

paul vudmaska

Please avoid top-posting.<<

Is this a top-posting? How do i submit a sub
top-posting?

Anyway i submitted a post about rexml perhaps
intermittantly caching a file. I figured out why.

before, i was loading the xml like this...

$global =
REXML::Document.new(File.new('xml/global.xml'))

and not closing file.

now, instead, i do this
$globalFile = File.new('xml/global.xml')
$global = REXML::Document.new($globalFile)
....
$globalFile.close

and close $globalFile at the end.

Anyway, alls groovy now.

THanks,:p




__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,125
Messages
2,570,748
Members
47,302
Latest member
MitziWragg

Latest Threads

Top