Excellent! Thanks Marc, Kent, and everyone. Marc your code worked. Now to see if it will run on the full 4.5 GB file! : )
Thanks matt Matthew Pirritano, Ph.D. Research Analyst IV Medical Services Initiative (MSI) Orange County Health Care Agency (714) 568-5648 ________________________________ From: tutor-bounces+mpirritano=ochca....@python.org [mailto:tutor-bounces+mpirritano=ochca....@python.org] On Behalf Of Marc Tompkins Sent: Tuesday, April 07, 2009 10:33 AM To: tutor@python.org Subject: Re: [Tutor] why is unicode converted file double spaced? On Tue, Apr 7, 2009 at 10:26 AM, Pirritano, Matthew <mpirrit...@ochca.com> wrote: Thanks Marc, But I think that got rid of all of my carriage returns. Everything on just one line now. Sorry! My bad! Try this instead: for outLine in inp: outp.write(outLine.strip() + '\n')
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor