yes,
it is correct.

Actually, I am writing a program for practice.

class File
splitting which is done by you.
end
t1=File.find("name","xyz")
t1.name
t1.city
all this gives us name & city.
-- 
Posted via http://www.ruby-forum.com/.