from shutil import copy2 from shutil import move import os try: opening = open("file.txt", "r") # filename num = opening.read() # readin