From: Seebs on
On 2009-11-18, Mayur Shivakumar <sk.mayur(a)gmail.com> wrote:
> Thanks ...but i want to convert to hash.and text file might look like
> this

> name score result
> jermy 23 pass
> anooj 1 fail

That's nice. What do you want the hash to look like?

What you show here is not the sort of thing a hash is usually much good at,
because a hash is key/value *pairs*, and you appear to have triplets.

-s
--
Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam(a)seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!