Lecture Notes on 07 Octover 2009 # This program opens a file called "humpty" and # make a copy of it. def main(): inFile = open ("humpty", "r") outFile = open ("humpty.copy", "w") for line in inFile: line = line.rstrip("\n") # strips the end of line character print line outFile.write (line + "\n") inFile.close() outFile.close() main()