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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -