i just made the first 2 edits which u suggested and it worked  :)

Thanks Robert for being there on every posts of mine and putting some 
sense in my empty head

w.r.t 2 the format code not sure how i can implement in my program.. but 
anyways the prob of newline is resolved.

will look forward to your support in my ruby adventure. respect!

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