## python copy.py donor recipient from sys import argv import os donor = argv[1] recipient = argv[2] if len(argv) < 3: print("Usage: python copy.py donor recipient") quit() ## open the donor for readding if not os.path.exists(donor): print("Donor file does not exist. Bailing!") quit() fp_in = open(donor, "r") ## open the recipient for writing fp_out = open(recipient, "w") ## get a line from donor, place in recippent until donor exhausted for line in fp_in: fp_out.write(line) ## Mr. Rogers: close files when done. fp_in.close() fp_out.close()