File processing

Bjorn Pettersen BPettersen at NAREX.com
Mon Feb 17 14:00:20 EST 2003


> From: fishers [mailto:m.e.l at btclick.com] 
> 
> Hi
> 
> Can Python be used to do 'high-level' file processing. for example,
> appending one file to another? And if so, how?

  fp = open('file1', 'a')
  fp.write(open('file2', 'rb').read())
  fp.close()

-- bjorn





More information about the Python-list mailing list