Ayushi Dalmia <ayushidalmia2...@gmail.com> Wrote in message: > > > The size of this file will be 10 GB. The version of Python I am using is > 2.7.2. Yes, performance is an important issue. >
Then the only viable option is to extract the entire file and write it to a temp location. Perhaps as you extract it, you could also build a list of offsets, so the seeking by line number can be efficient. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list