Trying to copy from one text file to another in Python -


i attempted use code below, need 1 argument, gave 0.

print "copy 1 file another:"  print "type first file here:"   file1 = raw_input('>')  openfile = open(file1).read()  file2 = raw_input('>')  open2file = open(file2, 'w') second = open2file.write()    print "all done" 

it's open2file.write(openfile). sends content of file read opened file.


Comments

Popular posts from this blog

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -

php - Issues outputting data after prepared statement with loops -

javascript - How to pass a property by reference -