tagarwal wrote: > Is there a library in python which could be used for parsing file based upon > various sections You don't give enough context for anyone to answer. Learn to ask smart questions if you hope to have smart answers !-) You may want to read the excellent 'Text Processing in Python' by David Mertz. Bruno