Append a file

Jason Venneri jv92109 at gmail.com
Fri Mar 6 16:55:13 EST 2015


Hello, I'm using the urllib.urlretrieve command to retrieve a couple of lines of data.  I want to combine the two results into one file not two.  

Any suggestions?

Sample
urllib.urlretrieve('http://www.airplanes.com/data/boeing1.html','B747A.txt')
urllib.urlretrieve('http://www.airplanes.com/data/boeing2.html','B747B.txt')

I would like one file say B747C that contains the data from B747A and B747B in a file named B747C



More information about the Python-list mailing list