Hi all , Thanks for the input. I must add Kent's solution was the fastest. The actual file to parse is 12MB.
Though Eric's solution was more readable ( atleast for me). Now that I have the logic and code right I have to work on the real problem. Thanks in advance, yogesh ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor