On Tue, 14 Dec 2010 16:25:54 +0000 (UTC) Harishankar <v.harishan...@gmail.com> wrote: > On Tue, 14 Dec 2010 10:57:40 -0500, D'Arcy J.M. Cain wrote: > > open(out_fn, 'w').write(open(in_fn).read()) > Or what about shutil? Isn't that the higher level file operation module?
At least that's in the standard library but even then it can be overkill for a simple copy. It does do some error checking that the above doesn't do if you need that. -- D'Arcy J.M. Cain <da...@druid.net> | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list