fseek In Compressed Files

Ayushi Dalmia ayushidalmia2604 at gmail.com
Sat Feb 1 00:52:11 EST 2014


On Friday, January 31, 2014 12:16:59 AM UTC+5:30, Dave Angel wrote:
> Ayushi Dalmia <ayushidalmia2604 at gmail.com> Wrote in message:
> 
> > On Thursday, January 30, 2014 4:20:26 PM UTC+5:30, Ayushi Dalmia wrote:
> 
> >> Hello,
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> I need to randomly access a bzip2 or gzip file. How can I set the offset for a line and later retreive the line from the file using the offset. Pointers in this direction will help.
> 
> > 
> 
> > We are not allowed to use databases! I need to do this without database.
> 
> > 
> 
> 
> 
> Why do you reply to your own message?  Makes it hard for people to
> 
>  make sense of your post.
> 
> 
> 
> Have you any answers to earlier questions? How big is this file,
> 
>  what python version,  do you care about performance, code you've
> 
>  tried,  ...
> 
> 
> 
> -- 
> 
> DaveA

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. 



More information about the Python-list mailing list