I'm an idiot

Matt Gerrans mgerrans at mindspring.com
Sat Jun 29 01:07:12 EDT 2002

With such a small file, I don't know why no one mentioned this:

outfile = open( r'c:\path\output.txt', 'w' )
for line in open( r'c:\path\input.txt' ).readlines():
   outfile.write( line.strip() + '\n' )

(or was I not paying attention?)

- Matt

"David Griswold" <david_griswold1 at yahoo.com> wrote in message
news:Xns923BD424CF53Cdavidgriswold1netsca at
> Thank you, everyone, that took the time to help a newbie.
> David

More information about the Python-list mailing list