from sys import argv
from os.path import exists

script, from_file, to_file = argv

print "Copying from %s to %s" % (from_file, to_file)
in_data = open(from_file).read()

print "The input file is %d bytes" %len(in_data)

print "Does the output file exist %r" % exists(to_file)

print "Does the input file exist %r" %exists(from_file)
print "Ready, hit RETURN to continue, CTRL-C to abort."
raw_input()
print (in_data)
out_file = open(to_file,'w')
out_file.write(in_data)
print (out_file)
print "Alright, all done."

out_file.close()
# The line below is not require because python already closes the file.
#from_close = open(from_file).close()
