James Gray wrote:
> On Dec 13, 2006, at 4:02 PM, Drew Olson wrote:
> 
>>
>> What I'd like to do is something along the lines of:
>>
>> out = FCSV.open(my_file,"w")
>> out << my_data
>> ...
>> out.close
>>
>> Is this functionality present?
> 
> Sure.  Should work just fine.  (File a bug if it doesn't!)
> 
> Just FYI though, the first example is very idiomatic Ruby.  We would
> always rather let the language clean up after us than to have to
> remember to do it ourselves.  That's why you see this construct all
> over Ruby even with normal File writes.
> 
> James Edward Gray II

James -

Was hoping you'd chime in. Thanks for the explanation, this is what I 
expected. I supposed I just have the beat the Java that's remaining in 
me by getting used to this type of code. I can certainly see the benefit 
of clean up being done for you.

Thanks,
Drew

-- 
Posted via http://www.ruby-forum.com/.