File processing

Rene Pijlman reageer.in at de.nieuwsgroep
Mon Feb 17 12:13:49 EST 2003


fishers:
>Can Python be used to do 'high-level' file processing. for example,
>appending one file to another? And if so, how?

The 'high level' functions are in the module shutil.

You could use shutil.copyfileobj(), with dst opened for
appending (see the mode parameter of file()).

-- 
René Pijlman

Wat wil jij leren?  http://www.leren.nl




More information about the Python-list mailing list