Did you try to run this code at all?

"save = File.close" throws an exception, as the File class has no 
'close' method obviously. You meant "save.close".

Why not specify the problem with human words?

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