> for line in infile.xreadlines(): > if not is_commented_line(line): > f.write(line) You can leave out the .xreadlines(); it is implied as of version 2.0 Daniel Ehrenberg __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/