Re: [Tutor] Fw: Reading gzip files

2008-12-16 Thread Kent Johnson
On Tue, Dec 16, 2008 at 11:29 AM, Dinesh B Vadhia wrote: > What I'd like to do is ... when an "IOError: CRC check failed" error happens > then close the offending file and move on to the next file in the list. How > do I achieve this with this particular type of error? You can catch IOError spe

[Tutor] Fw: Reading gzip files

2008-12-16 Thread Dinesh B Vadhia
Hi! I sent the note below earlier and thank-you for the various responses. The program reads a bunch of gzip files, writes the content out to a text file line by line (see code below). What I'd like to do is ... when an "IOError: CRC check failed" error happens then close the offending file a