#Jay Summet # CS 1301, Released to the public domain October 2007 # # #This funtion will copy the contents of the origin file # into the destination file. def copyFile(origin, destination): inFile = open(origin, "r") outFile = open(destination, "w") FileNotEmpty = True while( FileNotEmpty) : fileContents = inFile.read(50) outFile.write(fileContents) if ( len(fileContents) == 0): FileNotEmpty = False outFile.close() inFile.close() copyFile("myFile.txt", "newOutFile.txt")