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
Post a Comment