in reply to Re^2: reading lines from a text file
in thread reading lines from a text file

You got that right and I didn't mean to do that.

I just copied, pasted the sample code posted and modified the version with my logic.

But anyway, I should have properly given the code snippet.

Thanks for pointing it out and correcting :)