from sys import argv from os.path import exists print(f"Copying from test.txt to copy-write.txt ") # We could do these two on new line, how ? in_file = open(test.txt) indata = in_file.read() print(f"The input file is {len(in_file)} long") print(f"Does the output file exist? {exists(copy-write)}") print('Ready , hit RETURN to continue , CTRL + C to abort') input() out_file = open(copy-write, 'w') out_file.write(indata) print("Alright It,s done baby") out_file.close() in_file.close()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)