Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. line1 = "Alright, I think I understand. Thank you again"
  2. line2 = " just had to use join to separate the data"
  3. line3 = " whether that's desirable or not I suppose is down to the OP"
  4. path = "C:\Users\subashini.u\Desktop\"
  5.  
  6. l=["line1","line2","line3"]
  7. count = 0
  8. for txt_file in l:
  9. count += 1
  10. for x in range(count):
  11. with open(path + "outputDoc%s.txt" % x) as output_file:
  12. output_file.write(txt_file)
  13. #shutil.copyfileobj(file_response.raw, output_file)
  14. output_file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement