Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- line1 = "Alright, I think I understand. Thank you again"
- line2 = " just had to use join to separate the data"
- line3 = " whether that's desirable or not I suppose is down to the OP"
- path = "C:\Users\subashini.u\Desktop\"
- l=["line1","line2","line3"]
- count = 0
- for txt_file in l:
- count += 1
- for x in range(count):
- with open(path + "outputDoc%s.txt" % x) as output_file:
- output_file.write(txt_file)
- #shutil.copyfileobj(file_response.raw, output_file)
- output_file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement