Man, you just asked half of this question yesterday. The least you could do is mention that. You also seem to have posted this question twice -- it will probably get reaped soon. Please take a look at this node.
Comment on Re: How can i read the lines and store them in an array like following fashion?