remove header line when reading/writing files

Tim Chase python.list at tim.thechases.com
Thu Oct 11 19:23:59 EDT 2007


Forgot the enumerate call of all things

> for zipfile in filelist:
> 	for i, line in enumerate(gzip.Gzipfile(zipfile,'r')):
> 		if i: outfile.write(line)


Some days, I'm braindead.

-tkc





More information about the Python-list mailing list